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 crash in intermediate no-tabs state #1272

Merged
merged 2 commits into from
Mar 25, 2022
Merged

Fix crash in intermediate no-tabs state #1272

merged 2 commits into from
Mar 25, 2022

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Mar 25, 2022

Fixes #929

There are various cases in which we try to move clients between tabs and there are no tabs to move them to (eg. when closing the last tab under certain race conditions). This makes the move function resilient, recovering when possible (eg. moving clients to another tab) and logging the error when not (no tabs left).

This also adds a fix to the tab bar to handle situations in which there is no focused tab for the client in question (also related to these edge cases). What it does is not update its own state - which while not desirable, doesn't really matter because this is a corrupt state and only happens because an additional render happened before we managed to close everything.

@imsnif imsnif temporarily deployed to cachix March 25, 2022 13:23 Inactive
@imsnif imsnif temporarily deployed to cachix March 25, 2022 13:23 Inactive
@imsnif imsnif merged commit b5cb547 into main Mar 25, 2022
@har7an har7an deleted the move-clients-fix branch October 23, 2022 15:07
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.

Not sure what did I do, but zellij crashed
1 participant