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

update history of a newly focused view #9271

Merged
merged 1 commit into from
Jan 9, 2024
Merged

update history of a newly focused view #9271

merged 1 commit into from
Jan 9, 2024

Conversation

pascalkuthe
Copy link
Member

@pascalkuthe pascalkuthe commented Jan 8, 2024

closes #9181

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.
We already create a history commit on view change so the old view should not need them (the current solution was inadequate for that case anyway since it didn't handle multiple view changes).

These changes were originally introduced to fix mode switch hooks.
However, the mode switch hooks have been moved elsewhere so that concern
no longer applies. 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.

I tested all the reproduction cases from back in the day and unsurprisingly all of them do not cause any panic with this change.

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.
@pascalkuthe pascalkuthe added C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer. A-helix-term Area: Helix term improvements labels Jan 8, 2024
@archseer archseer merged commit 48c49f0 into master Jan 9, 2024
6 checks passed
@archseer archseer deleted the split_in_view branch January 9, 2024 00:56
dgkf pushed a commit to dgkf/helix that referenced this pull request Jan 30, 2024
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helix not refreshing UI after insert-output
2 participants