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(panes): show visual error when unable to split panes vertically/horizontally #2025

Merged
merged 3 commits into from
Dec 14, 2022

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Dec 14, 2022

Previously, when trying to split a fixed pane - the behaviour would be erratic. This PR stabilizes the behaviour, meaning it would always fail and show an error to the user (the frame changes color to red, with a TOO SMALL! title, for 1 second).

To do this, I introduced a BackgroundJobs thread that runs async jobs depending on instructions it gets, in this case it flashes the error on and then off again after 1 second.

@imsnif imsnif temporarily deployed to cachix December 14, 2022 20:41 — with GitHub Actions Inactive
@imsnif imsnif merged commit c3115a4 into main Dec 14, 2022
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.

1 participant