From b96c5e3687d36cea7b575a7e151326f1b82824d2 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 8 Jan 2021 08:22:10 +0000 Subject: With incremental search, start empty and only repeat the previous search if the user tries to search again with an empty prompt. This matches emacs behaviour more closely. --- window-copy.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'window-copy.c') diff --git a/window-copy.c b/window-copy.c index 4c81cb1f..bfa94aed 100644 --- a/window-copy.c +++ b/window-copy.c @@ -2030,6 +2030,8 @@ window_copy_cmd_search_backward_incremental(struct window_copy_cmd_state *cs) data->timeout = 0; + log_debug ("%s: %s", __func__, argument); + prefix = *argument++; if (data->searchx == -1 || data->searchy == -1) { data->searchx = data->cx; @@ -2083,6 +2085,8 @@ window_copy_cmd_search_forward_incremental(struct window_copy_cmd_state *cs) data->timeout = 0; + log_debug ("%s: %s", __func__, argument); + prefix = *argument++; if (data->searchx == -1 || data->searchy == -1) { data->searchx = data->cx; -- cgit