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

Clear resize info when closing all but one window #147

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Conversation

ulyssa
Copy link
Owner

@ulyssa ulyssa commented Aug 10, 2024

This fixes the issue observed in ulyssa/iamb#307 where typing <C-W>o after restoring the window layout could reproducibly crash. The problem is that when the ResizeInfo contains window lengths (which it always does on restore, since they get snapshotted), they don't get cleared when WindowLayoutState::only is called. This results in an inconsistent state that the assertion in set_area_lens runs into later on.

@ulyssa ulyssa enabled auto-merge (squash) August 10, 2024 05:42
@ulyssa ulyssa merged commit 51de3d1 into main Aug 10, 2024
4 checks passed
@ulyssa ulyssa deleted the window-only-crash branch August 10, 2024 05:42
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