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 double-keystroke bug in layout selection #38

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

vinnymeller
Copy link
Owner

Currently there is a bug when selecting a layout where you need to press keys 2-3 times for them to register. I have no idea why, but this fixes it.

Something about starting a Tui instance to select the workspace, closing it, and then starting another one to select the layout doesn't work.

This change starts a Tui instance as needed earlier in the program and passes it around until we're done using it.

Currently there is a bug when selecting a layout where you need to press
keys 2-3 times for them to register. I have no idea why, but this fixes
it.

Something about starting a Tui instance to select the workspace, closing
it, and then starting another one to select the layout doesn't work.

This change starts a Tui instance as needed earlier in the program and
passes it around until we're done using it.

Also slightly refactors a couple places.
@vinnymeller vinnymeller force-pushed the fix-double-tab-bug-in-layout-selection branch from bd08544 to 004acee Compare June 3, 2024 05:26
@vinnymeller vinnymeller merged commit 0c0188b into master Jun 3, 2024
1 check passed
@vinnymeller vinnymeller deleted the fix-double-tab-bug-in-layout-selection branch June 3, 2024 05:31
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