Closed obxhdx closed 9 years ago
But if you do :enew
after that, then thereafter everything works fine?
If so, can you try leaving line 166 as BufAdd
but adding this line and tell me if that fixes the issue?
autocmd VimEnter * call buftabline#update(0)
(Changing it to BufEnter
fixes the issue by triggering way more updates than necessary. I am trying to avoid that.)
It works after doing :enew
, and adding an autocmd
for VimEnter
fixes the issue.
I understand your point about BufEnter
,... it would call update everytime you switch buffers.
Well it already does (otherwise it couldn’t render the change in active buffer!) but Vim already calls it automatically for that case – so forcing an update from an autocmd BufEnter
would cause a double update at every buffer switch.
If you start Vim opening multiple files (e.g.:
vim file1 file2
), only the current buffer name displayed. It's like the plugin is not properly updated.Not sure if that would be the ideal fix, but if I change
BufAdd
in buftabline.vim#L166 to beBufEnter
, then it works fine.