mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 05:55:38 +02:00
tabline: simplify autocommand condition
This commit is contained in:
parent
58b9b3ec81
commit
758c83acbf
@ -64,8 +64,7 @@ function! s:update_tabline()
|
|||||||
elseif !get(g:, 'airline#extensions#tabline#enabled', 0)
|
elseif !get(g:, 'airline#extensions#tabline#enabled', 0)
|
||||||
return
|
return
|
||||||
" return, if buffer matches ignore pattern or is directory (netrw)
|
" return, if buffer matches ignore pattern or is directory (netrw)
|
||||||
elseif empty(match) || airline#util#ignore_buf(match)
|
elseif empty(match) || airline#util#ignore_buf(match) || isdirectory(match)
|
||||||
\ || isdirectory(expand("<afile>"))
|
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
call airline#util#doautocmd('BufMRUChange')
|
call airline#util#doautocmd('BufMRUChange')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user