From 966da682281958725a22dc5f2ef62fd0118f40c1 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 20 Nov 2021 16:37:32 +0100 Subject: [PATCH] tweaks: exclude some hidden-interface code from the tiny version Also, reshuffle one call and drop another: the cursor has been placed fifteen lines earlier (either directly or in edit_refresh()). (Important test case: toggling softwrap.) --- src/nano.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nano.c b/src/nano.c index e802c4b5..b7cbd9f7 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2553,6 +2553,7 @@ int main(int argc, char **argv) else place_the_cursor(); +#ifndef NANO_TINY /* In barless mode, either redraw a relevant status message, * or overwrite a minor, redundant one. */ if (ISSET(ZERO) && lastmessage > HUSH) { @@ -2562,11 +2563,10 @@ int main(int argc, char **argv) } redrawwin(bottomwin); wnoutrefresh(bottomwin); + wnoutrefresh(edit); } else if (ISSET(ZERO) && lastmessage > VACUUM) wredrawln(edit, editwinrows - 1, 1); - - place_the_cursor(); - wnoutrefresh(edit); +#endif errno = 0; focusing = TRUE;