From 2cbd4d29a0228d964faba0f1383a64cd18f29dc0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 15 Nov 2021 15:07:10 +0100 Subject: [PATCH] search: with --zero, drop a message at the same time as the spotlight Messages like "Search Wrapped" and "This is the only occurrence" do not need to be shown until the next keystroke. Dropping them quickly gives a better fullscreen experience. --- src/winio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/winio.c b/src/winio.c index 879da2e4..20646267 100644 --- a/src/winio.c +++ b/src/winio.c @@ -221,6 +221,8 @@ void read_keys_from(WINDOW *win) if (input == ERR) { if (spotlighted || LINES == 1) { + if (ISSET(ZERO) && lastmessage > VACUUM) + wredrawln(edit, editwinrows - 1 , 1); lastmessage = VACUUM; spotlighted = FALSE; update_line(openfile->current, openfile->current_x);