Skip to content

Commit a72a952

Browse files
author
skywind3000
committed
update asyncrun.vim
1 parent 762e5ce commit a72a952

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugin/asyncrun.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2023
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2023/08/03 12:59
6+
" Last Modified: 2023/08/03 13:04
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1441,6 +1441,12 @@ function! s:terminal_open(opts)
14411441
echohl None
14421442
endtry
14431443
endif
1444+
if has_key(a:opts, 'ft')
1445+
let ft = get(a:opts, 'ft', '')
1446+
if ft != ''
1447+
exec 'setlocal ft='. ft
1448+
endif
1449+
endif
14441450
endif
14451451
endif
14461452
return pid

0 commit comments

Comments
 (0)