Skip to content

Commit 1db0f30

Browse files
author
skywind3000
committed
better path handling
1 parent 143b677 commit 1db0f30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/asyncrun.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016, 2017, 2018, 2019, 2020
44
" Homepage: http://www.vim.org/scripts/script.php?script_id=5431
55
"
6-
" Last Modified: 2021/02/03 12:49
6+
" Last Modified: 2021/02/11 22:24
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -968,7 +968,7 @@ function! asyncrun#fullname(f)
968968
endif
969969
if f == '%'
970970
let f = expand('%')
971-
if &bt == 'terminal'
971+
if &bt == 'terminal' || &bt == 'nofile'
972972
let f = ''
973973
endif
974974
endif
@@ -1884,7 +1884,7 @@ endfunc
18841884
" asyncrun - version
18851885
"----------------------------------------------------------------------
18861886
function! asyncrun#version()
1887-
return '2.8.2'
1887+
return '2.8.3'
18881888
endfunc
18891889

18901890

0 commit comments

Comments
 (0)