Skip to content

Commit 6942fc4

Browse files
author
skywind3000
committed
fixed: not compatible with vim-7.4.1829 (regression)
1 parent d9cf2ae commit 6942fc4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugin/asyncrun.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2022
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2022/02/03 22:15
6+
" Last Modified: 2022/02/20 00:05
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -765,6 +765,9 @@ function! s:AsyncRun_Job_Start(cmd)
765765
let l:options['callback'] = function('s:AsyncRun_Job_OnCallback')
766766
let l:options['close_cb'] = function('s:AsyncRun_Job_OnClose')
767767
let l:options['exit_cb'] = function('s:AsyncRun_Job_OnExit')
768+
if v:version < 800
769+
let l:options['exit_cb'] = "<SID>AsyncRun_Job_OnExit"
770+
endif
768771
let l:options['out_io'] = 'pipe'
769772
let l:options['err_io'] = 'out'
770773
let l:options['in_io'] = 'null'
@@ -2055,7 +2058,7 @@ endfunc
20552058
" asyncrun - version
20562059
"----------------------------------------------------------------------
20572060
function! asyncrun#version()
2058-
return '2.9.9'
2061+
return '2.9.10'
20592062
endfunc
20602063

20612064

0 commit comments

Comments
 (0)