plugin: remember 'scroll' option value and reset it after enabling the statusline

fixes #2307
This commit is contained in:
Christian Brabandt 2020-12-23 13:43:30 +01:00
parent f39208f1a0
commit 59b4826806
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -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