mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 14:20:15 +08: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…
Reference in New Issue
Block a user