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(screen): hold and applylayout races #2251

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Mar 8, 2023

Fixes #2234 and similar situations when applying layout

This started happening because we separated the layout application and tab creation to two different steps (in preparation for applying layouts at runtime and to make swap layouts easier). This opened up some potential for races. This fix addresses the immediate concern, and we might want to add some UI indication to it in the future so that we won't be able to close tabs that are "pending".

@imsnif imsnif temporarily deployed to cachix March 8, 2023 16:26 — with GitHub Actions Inactive
@imsnif imsnif merged commit ae29eb5 into main Mar 8, 2023
joshheyse pushed a commit to joshheyse/zellij that referenced this pull request Mar 11, 2023
* fix(screen): log error instead of crashing when unable to find tab id

* style(fmt): rustfmt
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.

Crashes after closing a recently created tab
1 participant