nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 984c9e107805f5cfceb3f595f5d3797bed5443ac
parent 101dc4e8050eb3cc8f225b1147d4693d99e6fa64
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 11 Jun 2021 16:44:31 +0200

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.)

Diffstat:
Msrc/winio.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -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)