nano

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

commit 79def643a380ee94a54cc071e9172a634789112e
parent 9a8d9ef4965f37402d2a5472659afd21cbb1f6ae
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 25 Nov 2021 15:49:26 +0100

options: make --zero imply --nohelp, and 'set zero' imply 'set nohelp'

This fits better with what "zero" intuitively means.

Diffstat:
Msrc/nano.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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();