mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-27 20:12:16 +08:00
tabline: Fix tab label being named wrongly
- Manage `nobuflisted` windows together
- If a tab has no `buflisted` window,
the tab label is named from default buffer name.
- Fix default buffer name selection from wrong tab
- It has picked up default buffer name from active tab,
not from the target tab.
This commit is contained in:
@@ -52,7 +52,7 @@ function! airline#extensions#tabline#buflist#list()
|
||||
" Basically branch 535 already does it, but since it relies on
|
||||
" BufAdd autocommand, I'd like to avoid this if possible.
|
||||
for nr in list
|
||||
if buflisted(nr)
|
||||
if bufloaded(nr)
|
||||
" Do not add to the bufferlist, if either
|
||||
" 1) bufnr is exclude_buffers list
|
||||
" 2) buffername matches one of exclude_paths patterns
|
||||
|
||||
Reference in New Issue
Block a user