Skip to content

fix(search): keep Insert mode when starting search fixes #8908#9971

Open
bearylabs wants to merge 1 commit intoVSCodeVim:masterfrom
bearylabs:fix/search-start-preserve-insert-mode
Open

fix(search): keep Insert mode when starting search fixes #8908#9971
bearylabs wants to merge 1 commit intoVSCodeVim:masterfrom
bearylabs:fix/search-start-preserve-insert-mode

Conversation

@bearylabs
Copy link
Copy Markdown

@bearylabs bearylabs commented Mar 31, 2026

What this PR does / why we need it:

This PR fixes a regression where starting search while in Insert mode could switch the editor into Visual mode unexpectedly.

The fix keeps Insert mode active when search starts, while still updating cursor and selection state correctly for command-driven selections.

Which issue(s) this PR fixes

fixes #8908
fixes #9516

Prevent search-start selection updates from forcing a mode switch to Visual.

Keep Insert mode active while still updating cursor/selection state for command-driven selections.

This fixes the regression where starting search entered Visual mode unexpectedly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant