File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
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/09/23 13:53
6
+ " Last Modified: 2022/10/06 04:40
7
7
"
8
8
" Run shell command in background and output to quickfix:
9
9
" :AsyncRun[!] [options] {cmd} ...
@@ -1062,8 +1062,16 @@ function! asyncrun#fullname(f)
1062
1062
endif
1063
1063
if f == ' %'
1064
1064
let f = expand (' %' )
1065
- if &bt == ' terminal' || & bt == ' nofile '
1065
+ if &bt == ' terminal'
1066
1066
let f = ' '
1067
+ elseif &bt == ' nofile'
1068
+ let is_directory = 0
1069
+ if f = ~ ' [\/\\]$'
1070
+ if f = ~ ' ^[\/\\]' || f = ~ ' ^.:[\/\\]'
1071
+ let is_directory = isdirectory (f )
1072
+ endif
1073
+ endif
1074
+ let f = (is_directory)? f : ' '
1067
1075
endif
1068
1076
elseif f = ~ ' ^\~[\/\\]'
1069
1077
let f = expand (f )
@@ -2075,7 +2083,7 @@ endfunc
2075
2083
" asyncrun - version
2076
2084
" ----------------------------------------------------------------------
2077
2085
function ! asyncrun#version ()
2078
- return ' 2.9.15 '
2086
+ return ' 2.10.0 '
2079
2087
endfunc
2080
2088
2081
2089
You can’t perform that action at this time.
0 commit comments