File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
4
4
" Homepage: https://github.com/skywind3000/asyncrun.vim
5
5
"
6
- " Last Modified: 2024/07/02 00:23
6
+ " Last Modified: 2024/07/26 10:46:36
7
7
"
8
8
" Run shell command in background and output to quickfix:
9
9
" :AsyncRun[!] [options] {cmd} ...
@@ -1248,7 +1248,11 @@ function! asyncrun#get_root(path, ...)
1248
1248
endif
1249
1249
endif
1250
1250
let strict = (a: 0 >= 2 )? (a: 2 ) : 0
1251
- let l: hr = s: find_root (a: path , markers, strict)
1251
+ if type (a: path ) == 0 && (a: path == 0 )
1252
+ let l: hr = s: find_root (' %' , markers, strict)
1253
+ else
1254
+ let l: hr = s: find_root (a: path , markers, strict)
1255
+ endif
1252
1256
if s: asyncrun_windows
1253
1257
let l: hr = s: StringReplace (l: hr , ' /' , " \\ " )
1254
1258
endif
@@ -2337,7 +2341,7 @@ endfunc
2337
2341
" asyncrun - version
2338
2342
" ----------------------------------------------------------------------
2339
2343
function ! asyncrun#version ()
2340
- return ' 2.13.0 '
2344
+ return ' 2.13.1 '
2341
2345
endfunc
2342
2346
2343
2347
You can’t perform that action at this time.
0 commit comments