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: Cancel visual mode when switching editor #1578

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

trkoch
Copy link
Collaborator

@trkoch trkoch commented Oct 29, 2023

Fixes #1577

@trkoch trkoch requested a review from xiyaowong October 29, 2023 15:13
@trkoch trkoch changed the title Cancel visual mode when switching editor bug: Cancel visual mode when switching editor Oct 29, 2023
@trkoch trkoch changed the title bug: Cancel visual mode when switching editor fix: Cancel visual mode when switching editor Oct 29, 2023
@trkoch
Copy link
Collaborator Author

trkoch commented Oct 29, 2023

Note I "fixed" a test by changing the assertion. It was changed to V with 6c21721. Judging from the title Current mode is canceled when switching between editor panes I feel this makes more sense now.

@xiyaowong
Copy link
Collaborator

Off-topic, I think there are too many logs now, one log per step...😂

src/buffer_manager.ts Show resolved Hide resolved
@trkoch
Copy link
Collaborator Author

trkoch commented Oct 29, 2023

Off-topic, I think there are too many logs now, one log per step...😂

@xiyaowong Yeah. It's pretty crazy. It did help me though with debugging this issue.

@theol0403 theol0403 merged commit 15cb3d7 into master Oct 29, 2023
14 checks passed
@theol0403 theol0403 deleted the selection-other-group branch October 29, 2023 19:05
logger.debug(
`Cancel visual mode to prevent selection from previous editor to carry over to active editor`,
);
await this.client.input("<Esc>");
Copy link
Collaborator

Choose a reason for hiding this comment

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

:help interrupt() may be more ideal than inputting ESC.

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.

bug: Start of visual selection of previous group becomes start of selection in focused group
4 participants