Skip to content

Commit 3cb5b33

Browse files
author
skywind3000
committed
improve fullname compatibility
1 parent 1db0f30 commit 3cb5b33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/asyncrun.vim

Lines changed: 4 additions & 2 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/11 22:24
6+
" Last Modified: 2021/02/14 19:14
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -971,6 +971,8 @@ function! asyncrun#fullname(f)
971971
if &bt == 'terminal' || &bt == 'nofile'
972972
let f = ''
973973
endif
974+
elseif f =~ '^\~[\/\\]'
975+
let f = expand(f)
974976
endif
975977
let f = fnamemodify(f, ':p')
976978
if s:asyncrun_windows
@@ -1884,7 +1886,7 @@ endfunc
18841886
" asyncrun - version
18851887
"----------------------------------------------------------------------
18861888
function! asyncrun#version()
1887-
return '2.8.3'
1889+
return '2.8.4'
18881890
endfunc
18891891

18901892

0 commit comments

Comments
 (0)