Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabpage indicator doesn't update on :tabmove #74

Open
mawkler opened this issue Nov 28, 2020 · 1 comment
Open

Tabpage indicator doesn't update on :tabmove #74

mawkler opened this issue Nov 28, 2020 · 1 comment
Labels
bug Something isn't working upstream Caused by code barbar.nvim depends on
Milestone

Comments

@mawkler
Copy link
Contributor

mawkler commented Nov 28, 2020

Description

When moving the current tabpage with :tabmove the tabpage indicator does not update.

To Reproduce

init.vim:

call plug#begin('~/.vim/bundle')
Plug 'romgrk/barbar.nvim'
call plug#end()

Steps to reproduce the behavior:

  1. Run Neovim
  2. :tabedit (create new tabpage, indicator shows 2/2)
  3. :tabmove 0 (make this tabpage the first one)
  4. Tabpage indicator still shows 2/2 since it hasn't been updated.
  5. To confirm that :tabmove 0 actually moved the tab page do gtgT. Now the tabpage indicator shows 1/2 as expected.
@Iron-E
Copy link
Collaborator

Iron-E commented Dec 1, 2020

There's a missing bufferline#update() in plugin/bufferline.vim. Unfortunately there's no event for tabs being moved— I did find neovim/neovim#6916 though.

I never saw this before because I use nvim-tabmode to manage my tabs, rather than manual commands.

nvim-tabmode is based on nvim-libmodal, which performs a :redraw on mode exit. As such, whenever I moved a tab, the screen was redrawn. Your screen won't redraw until we tell it to, since you aren't using that.

@Iron-E Iron-E added the bug Something isn't working label Jun 6, 2022
@Iron-E Iron-E added the upstream Caused by code barbar.nvim depends on label Jun 15, 2022
@Iron-E Iron-E added this to the unplanned milestone Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Caused by code barbar.nvim depends on
Projects
None yet
Development

No branches or pull requests

2 participants