mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-27 07:54:44 +02:00
plugin: remember 'scroll' option value and reset it after enabling the statusline
fixes #2307
This commit is contained in:
parent
f39208f1a0
commit
59b4826806
@ -176,7 +176,11 @@ function! s:airline_toggle()
|
||||
|
||||
if !airline#util#stl_disabled(winnr())
|
||||
if &laststatus < 2
|
||||
let _scroll=&scroll
|
||||
set laststatus=2
|
||||
if &scroll != _scroll
|
||||
let &scroll = _scroll
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
if s:airline_initialized
|
||||
|
Loading…
x
Reference in New Issue
Block a user