Skip to content

Commit 2a92396

Browse files
committed
stop job
1 parent e7cf704 commit 2a92396

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

autoload/ctrlp.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ fu! s:UserCmd(lscmd)
453453
let path = tr(path, '\', '/')
454454
en
455455
if s:usrcmdasync && v:version >= 800 && exists('*job_start')
456+
if exists('s:job')
457+
call job_stop(s:job)
458+
en
456459
let g:ctrlp_allfiles = []
457460
let s:job = job_start(printf(lscmd, path), {'callback': 'ctrlp#addfile'})
458461
elsei has('patch-7.4-597') && !(has('win32') || has('win64'))

0 commit comments

Comments
 (0)