commit 1fb3218a1485a5e84a15217a4a91c71c09abd418
parent a7b1f0f03f2509c6add97a15004548cf9b725be3
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 9 Mar 2018 12:03:48 +0100
help: do not reserve space for line numbers, as they are absent
Help texts are shown without any line numbers, so the full width
of the screen should be used to display the text.
This fixes https://savannah.gnu.org/bugs/?53308.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/help.c b/src/help.c
@@ -146,6 +146,7 @@ void do_help(void)
#ifdef ENABLE_LINENUMBERS
UNSET(LINE_NUMBERS);
+ editwincols = COLS;
margin = 0;
#endif
tabsize = 8;
@@ -253,6 +254,7 @@ void do_help(void)
#ifdef ENABLE_LINENUMBERS
margin = was_margin;
+ editwincols = COLS - margin;
#endif
tabsize = was_tabsize;
#ifdef ENABLE_COLOR