Skip to content

Commit

Permalink
minor fixes for # and * after using :nohl (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge authored and johnfn committed Dec 7, 2016
1 parent d827e57 commit 09a4b0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 09a4b0a

Please sign in to comment.