commit 2cbd4d29a0228d964faba0f1383a64cd18f29dc0
parent d93a5594cd80c06ecb2ef8bbedd53a10d4622847
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 15 Nov 2021 15:07:10 +0100
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.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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);