File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change 3
3
" Maintainer: skywind3000 (at) gmail.com, 2016-2022
4
4
" Homepage: https://github.com/skywind3000/asyncrun.vim
5
5
"
6
- " Last Modified: 2022/06/14 20:43
6
+ " Last Modified: 2022/09/05 19:49
7
7
"
8
8
" Run shell command in background and output to quickfix:
9
9
" :AsyncRun[!] [options] {cmd} ...
@@ -1537,24 +1537,7 @@ endfunc
1537
1537
" ----------------------------------------------------------------------
1538
1538
function ! s: DispatchEvent (name, ... )
1539
1539
if has_key (g: asyncrun_event , a: name )
1540
- let l: F = g: asyncrun_event [a: name ]
1541
- if type (l: F ) == type (' ' )
1542
- let test = l: F
1543
- unlet l: F
1544
- let l: F = function (test)
1545
- endif
1546
- if a: 0 == 0
1547
- call l: F ()
1548
- else
1549
- let args = []
1550
- for index in range (a: 0 )
1551
- let args += [' a:' . (index + 1 )]
1552
- endfor
1553
- let text = join (args , ' ,' )
1554
- let cmd = ' call l:F(' . text . ' )'
1555
- exec cmd
1556
- endif
1557
- unlet l: F
1540
+ call call (g: asyncrun_event [a: name ], a: 000 )
1558
1541
endif
1559
1542
endfunc
1560
1543
@@ -2092,7 +2075,7 @@ endfunc
2092
2075
" asyncrun - version
2093
2076
" ----------------------------------------------------------------------
2094
2077
function ! asyncrun#version ()
2095
- return ' 2.9.12 '
2078
+ return ' 2.9.13 '
2096
2079
endfunc
2097
2080
2098
2081
You can’t perform that action at this time.
0 commit comments