Skip to content

Commit ea59f76

Browse files
author
skywind3000
committed
terminal: accept -scroll=0 option to keep consistency.
1 parent 364f854 commit ea59f76

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

plugin/asyncrun.vim

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2022
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2022/11/29 05:24
6+
" Last Modified: 2022/11/29 07:05
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1619,7 +1619,9 @@ function! s:start_in_terminal(opts)
16191619
if focus == 0
16201620
if has('nvim')
16211621
stopinsert
1622-
exec 'normal! ggG'
1622+
if get(a:opts, 'scroll', 1)
1623+
exec 'normal! ggG'
1624+
endif
16231625
endif
16241626
let last_tid = tabpagenr('#')
16251627
if last_tid > 0
@@ -1668,7 +1670,9 @@ function! s:start_in_terminal(opts)
16681670
if focus == 0 && hr >= 0
16691671
if has('nvim')
16701672
stopinsert
1671-
exec 'normal! ggG'
1673+
if get(a:opts, 'scroll', 1)
1674+
exec 'normal! ggG'
1675+
endif
16721676
endif
16731677
call win_gotoid(origin)
16741678
endif
@@ -2235,7 +2239,7 @@ endfunc
22352239
" asyncrun - version
22362240
"----------------------------------------------------------------------
22372241
function! asyncrun#version()
2238-
return '2.11.13'
2242+
return '2.11.14'
22392243
endfunc
22402244

22412245

0 commit comments

Comments
 (0)