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

When a search is cancelled, revert to previous search state #3617

Merged
merged 4 commits into from
Apr 2, 2019
Merged

When a search is cancelled, revert to previous search state #3617

merged 4 commits into from
Apr 2, 2019

Conversation

J-Fields
Copy link
Member

What this PR does / why we need it:
When a search is cancelled (<Esc> after /), the search state should revert to the previous state, rather than being overwritten. This means the previous search should still be highlighted if hlsearch is enabled and n should go to the next instance of that search.

Which issue(s) this PR fixes
Fixes #3616

@jpoon jpoon merged commit 1f6c198 into VSCodeVim:master Apr 2, 2019
@J-Fields J-Fields deleted the cancel-search branch April 26, 2019 01:41
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.

Search state should not change until a new search command is completed
2 participants