diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index cadb399..ace99fa 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -31,14 +31,18 @@ function! s:toggle_off() call airline#extensions#tabline#autoshow#off() call airline#extensions#tabline#tabs#off() call airline#extensions#tabline#buffers#off() - call airline#extensions#tabline#ctrlspace#off() + if s:ctrlspace + call airline#extensions#tabline#ctrlspace#off() + endif endfunction function! s:toggle_on() call airline#extensions#tabline#autoshow#on() call airline#extensions#tabline#tabs#on() call airline#extensions#tabline#buffers#on() - call airline#extensions#tabline#ctrlspace#on() + if s:ctrlspace + call airline#extensions#tabline#ctrlspace#on() + endif set tabline=%!airline#extensions#tabline#get() endfunction