nano

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

commit b741b1c985cca9a295562456b6d7ecabb8772d9a
parent 5f87ed5644f07fa9e1b3943d3e4cc33aac486088
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 11 May 2021 19:28:11 +0200

startup: skip drawing edit window when having message on one-row terminal

When there is just one row and there is a message, it is not a good idea
to draw the contents of the buffer as it would overwrite the message.

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

Bug existed since version 2.7.0, since nano allows very flat terminals,
and was made worse by commit 2cf28f9d from yesterday.

Diffstat:
Msrc/nano.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -2517,7 +2517,7 @@ int main(int argc, char **argv) if (!refresh_needed) { place_the_cursor(); wnoutrefresh(edit); - } else + } else if (LINES > 1 || lastmessage == VACUUM) edit_refresh(); #ifndef NANO_TINY