commit 9904aa5538dabf885f3cdb6d1e0e88714aef0138
parent 41b89aef8c36e35d96fcf310aeb9657ebc301d7b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 1 Sep 2022 08:34:06 +0200
tweaks: make the crawl use the whole screen also in the tiny version
Nobody will configure nano with --enable-tiny --enable-extra, but *if*
someone does, the title bar should be absent during the crawl.
Also, swap two messages, so that their order in the POT file will be
more sensible -- a closing brace comes after the function name.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -423,10 +423,9 @@ void window_init(void)
int toprows = ((ISSET(EMPTY_LINE) && LINES > 6) ? 2 : 1);
int bottomrows = ((ISSET(NO_HELP) || LINES < 6) ? 1 : 3);
-#ifndef NANO_TINY
if (ISSET(MINIBAR) || ISSET(ZERO))
toprows = 0;
-#endif
+
editwinrows = LINES - toprows - bottomrows + (ISSET(ZERO) ? 1 : 0);
/* Set up the normal three subwindows. */
@@ -1282,10 +1281,10 @@ void unbound_key(int code)
* (from the keyboard) that nano does not recognize. */
statusline(AHEM, _("Unknown sequence"));
#ifdef ENABLE_NANORC
- else if (code == MISSING_BRACE)
- statusline(AHEM, _("Missing }"));
else if (code == NO_SUCH_FUNCTION)
statusline(AHEM, _("Unknown function: %s"), commandname);
+ else if (code == MISSING_BRACE)
+ statusline(AHEM, _("Missing }"));
#endif
#ifndef NANO_TINY
else if (code > KEY_F0 && code < KEY_F0 + 25)