diff --git a/src/actions/actions.ts b/src/actions/actions.ts index c46e7870198..20de0e9567c 100644 --- a/src/actions/actions.ts +++ b/src/actions/actions.ts @@ -1548,6 +1548,9 @@ class CommandStar extends BaseCommand { vimState.cursorPosition = vimState.searchState.getNextSearchMatchPosition(vimState.cursorPosition).pos; } while (TextEditor.getWord(vimState.cursorPosition) !== currentWord); + // Turn one of the highlighting flags back on (turned off with :nohl) + Configuration.hl = true; + return vimState; } } @@ -1574,6 +1577,9 @@ class CommandHash extends BaseCommand { vimState.cursorPosition = vimState.searchState.getNextSearchMatchPosition(vimState.cursorPosition.getWordLeft(true)).pos; } while (TextEditor.getWord(vimState.cursorPosition) !== currentWord); + // Turn one of the highlighting flags back on (turned off with :nohl) + Configuration.hl = true; + return vimState; } }