-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.
+ * src/global.c, doc/man/nanorc.5 - Allow softwrap to be rebound.
2014-03-18 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (shortcut_init) - In the file browser one cannot
.B nowrap
Toggle whether long lines will be wrapped to the next line.
.TP
+.B softwrap
+Toggle whether long lines will be displayed over multiple screen lines.
+.TP
.B suspendenable
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window.
.TP
} else if (!strcasecmp(input, "nexthistory")) {
s->scfunc = get_history_newer_void;
s->execute = FALSE;
- } else if (!strcasecmp(input, "nohelp") ||
- !strcasecmp(input, "nohelp")) {
+ } else if (!strcasecmp(input, "nohelp")) {
s->scfunc = do_toggle_void;
s->execute = FALSE;
s->toggle = NO_HELP;
s->scfunc = do_toggle_void;
s->execute = FALSE;
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")) {
s->scfunc = do_toggle_void;
s->execute = FALSE;