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 Situationally Unusable Tab Groups #1364

Merged

Conversation

thecoolwinter
Copy link
Collaborator

Description

Fixes a bug where if the user has only a temporary tab open in a group, closing that tab would cause the group to be unusable.

To reproduce:

  • Open a tab (leave it temporary)
  • Close the tab
  • Try opening a new file
  • The file will not open, the only way to regain the tab group is to close the group and open a new split.

To fix, the temporary tab had to be removed correctly in the closeTab function. Before it would cause the openTab function to take an incorrect path and assume every tab after had already been created, resulting in effectively a no-op when it tried opening another file.

Related Issues

No issue opened afaik.

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Screen.Recording.2023-06-30.at.12.08.29.AM.mov

Copy link
Collaborator

@austincondiff austincondiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for the fix!

@thecoolwinter thecoolwinter merged commit 3220ffc into CodeEditApp:main Jul 1, 2023
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.

4 participants