mirror of
https://github.com/tmux/tmux.git
synced 2026-02-15 18:49:18 +00:00
Clear search counts when clearing marks in case of repeated search,
reported by Daniel Pereira in GitHub issue 4817.
This commit is contained in:
@@ -4271,6 +4271,9 @@ window_copy_clear_marks(struct window_mode_entry *wme)
|
|||||||
{
|
{
|
||||||
struct window_copy_mode_data *data = wme->data;
|
struct window_copy_mode_data *data = wme->data;
|
||||||
|
|
||||||
|
data->searchcount = -1;
|
||||||
|
data->searchmore = 0;
|
||||||
|
|
||||||
free(data->searchmark);
|
free(data->searchmark);
|
||||||
data->searchmark = NULL;
|
data->searchmark = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user