search: show "This is the only occurrence" also on a one-row terminal

That is: call edit_refresh() right away, to prevent the edit_refresh()
in the main loop from overwriting the status-bar message.

This fixes https://savannah.gnu.org/bugs/?60518.

Bug existed since version 5.6, commit 76742cc1.
This commit is contained in:
Benno Schulenberg 2021-05-05 10:36:18 +02:00
parent eb3cc3a32d
commit 7303f0c7b4

View File

@ -329,7 +329,7 @@ int findnextstr(const char *needle, bool whole_word_only, int modus,
light_to_col = wideness(line->data, found_x + found_len);
if (!ISSET(SHOW_CURSOR))
hide_cursor = TRUE;
refresh_needed = TRUE;
edit_refresh();
}
#endif