nano

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

commit 3be4ea0dc18e8b4cf33a706422700900e4837b1d
parent 3eda0135bcc7945bf01bb00548d7c09ddf8e8d88
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 23 Nov 2021 10:10:23 +0100

tweaks: fold a special case into the general one

Diffstat:
Msrc/nano.c | 2+-
Msrc/winio.c | 4----
2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -2548,7 +2548,7 @@ int main(int argc, char **argv) as_an_at = TRUE; - if (refresh_needed && (LINES > 1 || lastmessage == VACUUM)) + if ((refresh_needed && LINES > 1) || (LINES == 1 && lastmessage <= HUSH)) edit_refresh(); else place_the_cursor(); diff --git a/src/winio.c b/src/winio.c @@ -182,10 +182,6 @@ void read_keys_from(WINDOW *win) bool timed = FALSE; #endif - /* On a one-row terminal, overwrite an unimportant message. */ - if (LINES == 1 && currmenu == MMAIN && lastmessage == HUSH) - edit_refresh(); - /* Before reading the first keycode, display any pending screen updates. */ doupdate();