File tree Expand file tree Collapse file tree 1 file changed +29
-11
lines changed Expand file tree Collapse file tree 1 file changed +29
-11
lines changed Original file line number Diff line number Diff line change 3
3
" Maintainer: skywind3000 (at) gmail.com, 2016-2023
4
4
" Homepage: https://github.com/skywind3000/asyncrun.vim
5
5
"
6
- " Last Modified: 2023/09/22 14:44
6
+ " Last Modified: 2023/09/25 22:55
7
7
"
8
8
" Run shell command in background and output to quickfix:
9
9
" :AsyncRun[!] [options] {cmd} ...
@@ -1876,15 +1876,33 @@ function! s:run(opts)
1876
1876
let t = s: StringStrip (l: command )
1877
1877
1878
1878
if strpart (t , 0 , 1 ) == ' :' && g: asyncrun_strict == 0
1879
- try
1880
- exec strpart (t , 1 )
1881
- catch
1882
- redraw
1883
- echohl ErrorMsg
1884
- echo ' AsyncRun: ' . v: exception
1885
- echohl None
1886
- endtry
1887
- return ' '
1879
+ if t = ~ ' ^:\s*\!\s*start\s*\/b\s\+'
1880
+ let t = matchstr (t , ' ^:\s*\!\s*start\s*\/b\s\+\zs.*$' )
1881
+ let t = s: StringStrip (t )
1882
+ if t == ' '
1883
+ return ' '
1884
+ endif
1885
+ let l: command = t
1886
+ let l: mode = 5
1887
+ elseif t = ~ ' ^:\s*\!\s*start\s\+'
1888
+ let t = matchstr (t , ' ^:\s*\!\s*start\s\+\zs.*$' )
1889
+ let t = s: StringStrip (t )
1890
+ if t == ' '
1891
+ return ' '
1892
+ endif
1893
+ let l: command = t
1894
+ let l: mode = 4
1895
+ else
1896
+ try
1897
+ exec strpart (t , 1 )
1898
+ catch
1899
+ redraw
1900
+ echohl ErrorMsg
1901
+ echo ' AsyncRun: ' . v: exception
1902
+ echohl None
1903
+ endtry
1904
+ return ' '
1905
+ endif
1888
1906
elseif l: runner != ' '
1889
1907
let obj = deepcopy (l: opts )
1890
1908
let obj.cmd = command
@@ -2282,7 +2300,7 @@ endfunc
2282
2300
" asyncrun - version
2283
2301
" ----------------------------------------------------------------------
2284
2302
function ! asyncrun#version ()
2285
- return ' 2.11.24 '
2303
+ return ' 2.12.0 '
2286
2304
endfunc
2287
2305
2288
2306
You can’t perform that action at this time.
0 commit comments