From 79def643a380ee94a54cc071e9172a634789112e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 25 Nov 2021 15:49:26 +0100 Subject: [PATCH] options: make --zero imply --nohelp, and 'set zero' imply 'set nohelp' This fits better with what "zero" intuitively means. --- src/nano.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nano.c b/src/nano.c index e6ea3516..40eab9ac 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2219,6 +2219,10 @@ int main(int argc, char **argv) if (ISSET(RAW_SEQUENCES)) UNSET(USE_MOUSE); + /* When suppressing title bar or minibar, suppress also the help lines. */ + if (ISSET(ZERO)) + SET(NO_HELP); + #ifdef ENABLE_HISTORIES /* Initialize the pointers for the Search/Replace/Execute histories. */ history_init();