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

fix(window): ensure last_tab action on linux navigates to last tab #5004

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

pkarakal
Copy link
Contributor

Previously, the logic navigated to the second-to-last tab instead of the last tab due to an off-by-one error. This updates the implementation so that the index calculation to accurately target the last tab. In the gotoLastTab method there was a decrement in the number of max number of tabs and another increment in the goToTab method to get the actual tab index.

Previously, the logic navigated to the second-to-last tab instead of the
last tab due to an off-by-one error. This updates the implementation so
that the index calculation to accurately target the last tab.
In the `gotoLastTab` method there was a decrement in the number of max
number of tabs and another increment in the `goToTab` method to get the
actual tab index.
@mitchellh mitchellh enabled auto-merge January 13, 2025 20:59
@mitchellh mitchellh merged commit e3ced14 into ghostty-org:main Jan 13, 2025
30 checks passed
@github-actions github-actions bot added this to the 1.1.0 milestone Jan 13, 2025
@pkarakal pkarakal deleted the last-tab-idx branch January 13, 2025 21:40
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

Successfully merging this pull request may close these issues.

2 participants