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

new_tab !neighbor doesn't shift the tabs down, just swaps the existing neighbor to the end #1256

Closed
nerdrew opened this issue Dec 22, 2018 · 2 comments

Comments

@nerdrew
Copy link
Contributor

nerdrew commented Dec 22, 2018

When opening a new tab with the !neighbor setting, I expect it to shift the tab list over one instead of moving the existing neighbor to the end. Is that a bug or the expected behaviour?

Given these tabs:

tab1 (active) ┇tab2 ┇tab3

Existing behavior when adding a new tab when tab1 is active:

tab1 ┇tab4 (new tab) ┇tab3 ┇tab2

Expected behavior (at least expected by me) when adding a new tab when tab1 is active:

tab1 ┇tab4 (new tab) ┇tab2 ┇tab3

Commit to fix: nerdrew@a47a01e
I can open a PR if my expectations are correct and this is a bug.

@nerdrew
Copy link
Contributor Author

nerdrew commented Jan 3, 2019

The commit I linked above actually had 2 fixes in it. You merged one of them for creating a new tab as a neighbor. The other fix was for moving tabs. Should I re-open this one or open a new issue?

Second bug:

Given these tabs:

tab1┇tab2 ┇tab3 (active)

Existing behavior when moving tab3 to the right with move_tab_forward (so it wraps and becomes the first tab):

tab3 (active)┇tab2 ┇tab1

Expected behavior (at least expected by me) when moving tab3 to the right with move_tab_forward:

tab3 (active)┇tab1 ┇tab2

@kovidgoyal
Copy link
Owner

Oh, sorry, forgot about move_tab, now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants