Commit eec71e31 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Allowing softwrap to be rebound.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4655 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 10 additions and 3 deletions
+10 -3
2014-03-18 Benno Schulenberg <bensberg@justemail.net> 2014-03-19 Benno Schulenberg <bensberg@justemail.net>
* doc/nanorc.sample.in - Document the changed whitespace defaults. * doc/nanorc.sample.in - Document the changed whitespace defaults.
* src/global.c, doc/man/nanorc.5 - Allow softwrap to be rebound.
2014-03-18 Benno Schulenberg <bensberg@justemail.net> 2014-03-18 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (shortcut_init) - In the file browser one cannot * src/global.c (shortcut_init) - In the file browser one cannot
......
...@@ -524,6 +524,9 @@ position to the end of the line. ...@@ -524,6 +524,9 @@ position to the end of the line.
.B nowrap .B nowrap
Toggle whether long lines will be wrapped to the next line. Toggle whether long lines will be wrapped to the next line.
.TP .TP
.B softwrap
Toggle whether long lines will be displayed over multiple screen lines.
.TP
.B suspendenable .B suspendenable
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window. Toggle whether the suspend sequence (normally ^Z) will suspend the editor window.
.TP .TP
......
...@@ -1484,8 +1484,7 @@ sc *strtosc(int menu, char *input) ...@@ -1484,8 +1484,7 @@ sc *strtosc(int menu, char *input)
} else if (!strcasecmp(input, "nexthistory")) { } else if (!strcasecmp(input, "nexthistory")) {
s->scfunc = get_history_newer_void; s->scfunc = get_history_newer_void;
s->execute = FALSE; s->execute = FALSE;
} else if (!strcasecmp(input, "nohelp") || } else if (!strcasecmp(input, "nohelp")) {
!strcasecmp(input, "nohelp")) {
s->scfunc = do_toggle_void; s->scfunc = do_toggle_void;
s->execute = FALSE; s->execute = FALSE;
s->toggle = NO_HELP; s->toggle = NO_HELP;
...@@ -1525,6 +1524,10 @@ sc *strtosc(int menu, char *input) ...@@ -1525,6 +1524,10 @@ sc *strtosc(int menu, char *input)
s->scfunc = do_toggle_void; s->scfunc = do_toggle_void;
s->execute = FALSE; s->execute = FALSE;
s->toggle = NO_WRAP; s->toggle = NO_WRAP;
} else if (!strcasecmp(input, "softwrap")) {
s->scfunc = do_toggle_void;
s->execute = FALSE;
s->toggle = SOFTWRAP;
} else if (!strcasecmp(input, "tabstospaces")) { } else if (!strcasecmp(input, "tabstospaces")) {
s->scfunc = do_toggle_void; s->scfunc = do_toggle_void;
s->execute = FALSE; s->execute = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment