tweaks: redraw only the affected line instead of doing a full refresh

When the spotlighting needs to be cancelled, there is no need to do a
full refresh of the edit window -- redrawing just the relevant line is
enough.  (And when there is just one row, it is enough too.)
master
Benno Schulenberg 2021-06-11 16:44:31 +02:00
parent 101dc4e805
commit 984c9e1078
1 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,8 @@ void read_keys_from(WINDOW *win)
if (spotlighted || LINES == 1) {
lastmessage = VACUUM;
spotlighted = FALSE;
edit_refresh();
update_line(openfile->current, openfile->current_x);
wnoutrefresh(edit);
curs_set(1);
}
if (ISSET(MINIBAR) && LINES > 1)