commit 088557c51606125caeda86098c2f27cef3936aea
parent 4712d4646238cbd012adb1486fe151214600184a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 7 May 2021 12:20:50 +0200
tweaks: remove a check that has become superfluous
Since version 5.6, commit 76742cc1, nano highlights the search match,
which means that the screen gets refreshed anyhow, so this specific
refresh for a one-row terminal is no longer needed.
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/search.c b/src/search.c
@@ -433,8 +433,6 @@ void go_looking(void)
if (didfind == 1 && openfile->current == was_current &&
openfile->current_x == was_current_x)
statusline(REMARK, _("This is the only occurrence"));
- else if (didfind == 1 && LINES == 1)
- refresh_needed = TRUE;
else if (didfind == 0)
not_found_msg(last_search);