From 881106c4879a403e37c3361a231cfa24f8184e7c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 1 Jun 2020 20:28:07 +0200 Subject: [PATCH] tweaks: drop two unneeded wnoutrefresh() calls in the spotlight routines The call will be made at the end of edit_refresh() or in the main loop. --- src/winio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/winio.c b/src/winio.c index ec43895f..741b20b6 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3425,8 +3425,6 @@ void spotlight(size_t from_col, size_t to_col) wattroff(edit, interface_color_pair[SELECTED_TEXT]); free(word); - - wnoutrefresh(edit); } #ifndef NANO_TINY @@ -3475,8 +3473,6 @@ void spotlight_softwrapped(size_t from_col, size_t to_col) leftedge = break_col; from_col = break_col; } - - wnoutrefresh(edit); } #endif