nano

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

commit be6860b33ef2ce19c4bd2e9d0dea7175ccbb4dfb
parent 3a94a0bb89363ef8768546973aab051cd5bf4622
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 10 Nov 2021 15:57:45 +0100

tweaks: remove two unneeded unsettings

Before version 4.3, commit 3eab405e, nano would write a help text to
a temporary file and then read this file into a buffer.  The NOREAD
flag interfered with the latter, so needed to be reset for showing
help.  But since the mentioned commit nano writes a help text directly
into a buffer and the unsetting of the NOREAD flag is superfluous.

The display code never references the LINE_NUMBERS flag -- the trigger
for displaying line numbers in front of the text is 'margin > 0'.  So,
since commit 90bd25c1 that put help texts into a "normal" buffer, the
unsetting of the LINE_NUMBERS flag has been superfluous.

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

diff --git a/src/help.c b/src/help.c @@ -423,10 +423,8 @@ void show_help(void) UNSET(USE_REGEXP); UNSET(WHITESPACE_DISPLAY); - UNSET(NOREAD_MODE); #ifdef ENABLE_LINENUMBERS - UNSET(LINE_NUMBERS); editwincols = COLS - thebar; margin = 0; #endif