nano

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

commit 63b15275bde5f06f1f52dfc5fcaf5e848bafddfd
parent 772c324f25f90cc0f17abf2c72f85e72350b77eb
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 19 Aug 2018 13:49:10 +0200

bindings: remove the More-Space toggle entirely

It is so unlikely that a user will want to bind it that it
just clutters the help text (and the documentation).

Diffstat:
Mdoc/nano.texi | 3---
Mdoc/nanorc.5 | 3---
Msrc/global.c | 5-----
Msrc/nano.c | 1-
4 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/doc/nano.texi b/doc/nano.texi @@ -1377,9 +1377,6 @@ Toggles the presence of the two-line list of key bindings at the bottom of the s Toggles the constant display of the current line, column, and character positions. (The form @code{constupdate} is deprecated.) -@item morespace -Toggles the presence of the blank line that 'separates' the title bar from the file text. - @item smoothscroll Toggles smooth scrolling (when moving around with the arrow keys). diff --git a/doc/nanorc.5 b/doc/nanorc.5 @@ -740,9 +740,6 @@ Toggles the presence of the two-line list of key bindings at the bottom of the s Toggles the constant display of the current line, column, and character positions. (The form 'constupdate' is deprecated.) .TP -.B morespace -Toggles the presence of the blank line that 'separates' the title bar from the file text. -.TP .B smoothscroll Toggles smooth scrolling (when moving around with the arrow keys). .TP diff --git a/src/global.c b/src/global.c @@ -1234,7 +1234,6 @@ void shortcut_init(void) /* Group of "Appearance" toggles. */ add_to_sclist(MMAIN, "M-X", 0, do_toggle_void, NO_HELP); add_to_sclist(MMAIN, "M-C", 0, do_toggle_void, CONSTANT_SHOW); - add_to_sclist(MMAIN, "", 0, do_toggle_void, MORE_SPACE); add_to_sclist(MMAIN, "M-S", 0, do_toggle_void, SMOOTH_SCROLL); add_to_sclist(MMAIN, "M-$", 0, do_toggle_void, SOFTWRAP); #ifdef ENABLE_LINENUMBERS @@ -1389,8 +1388,6 @@ const char *flagtostr(int flag) return N_("Help mode"); case CONSTANT_SHOW: return N_("Constant cursor position display"); - case MORE_SPACE: - return N_("Use of one more line for editing"); case SMOOTH_SCROLL: return N_("Smooth scrolling"); case SOFTWRAP: @@ -1644,8 +1641,6 @@ sc *strtosc(const char *input) else if (!strcasecmp(input, "constantshow") || !strcasecmp(input, "constupdate")) /* Deprecated. Remove end of 2018. */ s->toggle = CONSTANT_SHOW; - else if (!strcasecmp(input, "morespace")) - s->toggle = MORE_SPACE; else if (!strcasecmp(input, "smoothscroll")) s->toggle = SMOOTH_SCROLL; else if (!strcasecmp(input, "softwrap")) diff --git a/src/nano.c b/src/nano.c @@ -1391,7 +1391,6 @@ void do_toggle(int flag) mouse_init(); break; #endif - case MORE_SPACE: case NO_HELP: window_init(); focusing = FALSE;