mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
perf: only redraw for CurSearch when it is currently in use
The check in redraw_for_cursorline() is not needed because VALID_VIRTCOL is always cleared when the cursor moves to another line, so the check in redraw_for_cursorcolumn() is enough.
This commit is contained in:
@@ -6017,3 +6017,9 @@ bool search_was_last_used(void)
|
||||
{
|
||||
return last_idx == 0;
|
||||
}
|
||||
|
||||
/// @return true if 'hlsearch' highlight is currently in use.
|
||||
bool using_hlsearch(void)
|
||||
{
|
||||
return spats[last_idx].pat != NULL && p_hls && !no_hlsearch;
|
||||
}
|
||||
|
Reference in New Issue
Block a user