tabline: only remove 'e' flag from guioptions, if it is present

This commit is contained in:
Christian Brabandt 2021-05-07 22:50:29 +02:00
parent 390b243cf3
commit c0c6b0e216
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
" MIT License. Copyright (c) 2013-2021 Bailey Ling et al.
" vim: et ts=2 sts=2 sw=2
" vim: et ts=2 sts=2 sw=2 et
scriptencoding utf-8
@ -12,7 +12,7 @@ let s:ctrlspace = get(g:, 'CtrlSpaceLoaded', 0)
let s:tabws = get(g:, 'tabws_loaded', 0)
function! airline#extensions#tabline#init(ext)
if has('gui_running')
if has('gui_running') && match(&guioptions, 'e') > -1
set guioptions-=e
endif