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: avoid escaping the exact word search twice #8566

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
3 changes: 0 additions & 3 deletions src/actions/commands/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ async function searchCurrentWord(
isExact = false;
}

if (isExact) {
currentWord = _.escapeRegExp(currentWord);
}
// If the search is going left then use `getWordLeft()` on position to start
// at the beginning of the word. This ensures that any matches happen
// outside of the currently selected word.
Expand Down