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
parent
101dc4e805
commit
984c9e1078
|
@ -220,7 +220,8 @@ void read_keys_from(WINDOW *win)
|
||||||
if (spotlighted || LINES == 1) {
|
if (spotlighted || LINES == 1) {
|
||||||
lastmessage = VACUUM;
|
lastmessage = VACUUM;
|
||||||
spotlighted = FALSE;
|
spotlighted = FALSE;
|
||||||
edit_refresh();
|
update_line(openfile->current, openfile->current_x);
|
||||||
|
wnoutrefresh(edit);
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
}
|
}
|
||||||
if (ISSET(MINIBAR) && LINES > 1)
|
if (ISSET(MINIBAR) && LINES > 1)
|
||||||
|
|
Loading…
Reference in New Issue