Clear marks when the search string changes. From Anindya Mukherjee,

GitHub issue 3255.
pull/3274/head
nicm 2022-07-22 07:14:07 +00:00
parent ee431d482a
commit a8da24771c
1 changed files with 2 additions and 0 deletions

View File

@ -3612,6 +3612,8 @@ window_copy_search(struct window_mode_entry *wme, int direction, int regex)
data->searchall = 0;
} else
visible_only = (strcmp(wp->searchstr, str) == 0);
if (visible_only == 0 && data->searchmark != NULL)
window_copy_clear_marks(wme);
free(wp->searchstr);
wp->searchstr = xstrdup(str);
wp->searchregex = regex;