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 closing buffer with custom keymap #3633

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

A-Walrus
Copy link
Contributor

@A-Walrus A-Walrus commented Sep 1, 2022

Closes #3626

@A-Walrus

This comment was marked as resolved.

erasin added a commit to erasin/helix that referenced this pull request Sep 1, 2022
Copy link
Member

@archseer archseer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @A-Walrus! We'll cut a 22.08.1 to include the fix

@archseer archseer merged commit 45dbcb6 into helix-editor:master Sep 1, 2022
@A-Walrus A-Walrus deleted the fix_custom_keymap_close branch September 1, 2022 17:30
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
* Fix closing buffer with custom keymap

* Add comment explaining if
jdrst pushed a commit to jdrst/helix that referenced this pull request Sep 13, 2022
* Fix closing buffer with custom keymap

* Add comment explaining if
herkhinah pushed a commit to herkhinah/helix that referenced this pull request Dec 11, 2022
* Fix closing buffer with custom keymap

* Add comment explaining if
pascalkuthe added a commit that referenced this pull request Jan 8, 2024
This change effectively reverts #3508 and #3633.
When a view is changed we must make history commits (and ensure that
the cursor is in view) for the newly focused view. Not the old view.

These changes were originally introduced to fix mode switch hooks.
However, the mode switch hooks have been moved elsewhere so that concern
doesn't apply anymore. In particular, because modes are now editor wide
and not per view and also because view switches now always reset the
editor back to normal mode.
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.

Crash when closing last buffer with custom keymap
3 participants