mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-08 10:42:00 +03:00
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.
This commit is contained in:
parent
a7b1f0f03f
commit
1fb3218a14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user