Skip to content

Commit

Permalink
plugin: set reset more while installing binaries
Browse files Browse the repository at this point in the history
Reset 'more' while installing binaries. Set it back to its original
value before returning. If necessary, Vim will only prompt the user for
more once, at the end of the process instead of multiple times during.
  • Loading branch information
bhcleek committed Aug 18, 2019
1 parent edb47f1 commit 659c00a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ function! s:GoInstallBinaries(updateBinaries, ...)
let l:platform = 'windows'
endif

let l:oldmore = &more
let &more = 0

for [l:binary, l:pkg] in items(l:packages)
let l:importPath = l:pkg[0]

Expand Down Expand Up @@ -230,6 +233,8 @@ function! s:GoInstallBinaries(updateBinaries, ...)
else
call go#util#EchoInfo('installing finished!')
endif

let &more = l:oldmore
endfunction

" CheckBinaries checks if the necessary binaries to install the Go tool
Expand Down

0 comments on commit 659c00a

Please sign in to comment.