Skip to content

Commit 9482b6a

Browse files
author
skywind3000
committed
2.4.1: fixed focusing issue in terminal window.
1 parent d5e59d3 commit 9482b6a

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: 2020/02/11 01:01
6+
" Last Modified: 2020/02/12 21:17
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1226,7 +1226,7 @@ function! s:start_in_terminal(opts)
12261226
endif
12271227
endif
12281228
if focus == 0 && &bt == 'terminal'
1229-
silent! stopinsert
1229+
exec has('nvim')? 'stopinsert' : ''
12301230
call win_gotoid(origin)
12311231
endif
12321232
return 0
@@ -1649,7 +1649,7 @@ endfunc
16491649
" asyncrun -version
16501650
"----------------------------------------------------------------------
16511651
function! asyncrun#version()
1652-
return '2.4.0'
1652+
return '2.4.1'
16531653
endfunc
16541654

16551655

0 commit comments

Comments
 (0)