You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably related to the general caching mechanism (in a dict and array). I think we should rather reconsider how we keep the list of the existing buffers or just get the new list every time if the performance will allow to do so.
" If this buffer is already tracked and listed, we're good.
" In case if it is the only buffer, still update, because an empty new
" buffer id is being replaced by a buffer for an existing file.
if is_present && len(s:buffers) > 1
continue
endif
Currently, we're not updating the buffer if it already exists and there's more than 1 buffer. It works for most cases, but not when you perform the steps mentioned.
Steps to reproduce:
:split
to create new window:edit file2
in that new window:edit file1
in the first windowWhat was expected:
The tabline to be
# | file1 | file2 |
What happened instead:
The tabline is
# | * | file2 |
The text was updated successfully, but these errors were encountered: