Merge pull request #2610 from pinicarus/master

only set laststatus when airline is not on top
This commit is contained in:
Christian Brabandt 2022-12-16 09:25:36 +01:00 committed by GitHub
commit 6a4c82c950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,9 @@ function! s:airline_toggle()
if !airline#util#stl_disabled(winnr())
if &laststatus < 2
let _scroll=&scroll
set laststatus=2
if !get(g:, 'airline_statusline_ontop', 0)
set laststatus=2
endif
if &scroll != _scroll
let &scroll = _scroll
endif