Skip to content
Discussion options

You must be logged in to vote

I initially discovered this when trying to move the commit/rebase tab using tabmove(-1):

Currently:

| init.lua | COMMIT_EDITMSG | other tab |
             ^ close (current)
| init.lua | other tab |
             ^

After running tabmove(-1):

| COMMIT_EDITMSG | init.lua | other tab |
  ^ close
| init.lua | other tab |
  ^

Note

So the problem is that after closing :Git commit tab, neovim cycles to the next tab.

See #2097 (reply in thread).

Later, I found that this issue can be handled more easily using the TabClosed event together with the :tabprev command, although it still has a few edge cases:

  • When a new split is created in the commit/rebase tab, closing that window sends the wrong buf…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@drowning-cat
Comment options

Answer selected by echasnovski
@echasnovski
Comment options

@drowning-cat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.git
2 participants