Putting the two wrapping toggles together

and increasing their contrast a bit.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4812 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-23 20:37:32 +00:00
parent 86b8686010
commit 9df767288c
2 changed files with 10 additions and 8 deletions

View File

@ -11,6 +11,8 @@
one in the list -- just like the function name implies. This will one in the list -- just like the function name implies. This will
make a user-defined shortcut appear in the two bottomlines without make a user-defined shortcut appear in the two bottomlines without
having to unbind the existing one first -- better feedback. having to unbind the existing one first -- better feedback.
* src/global.c(shortcut_init, flagtostr, strtosc): Put the two
wrapping toggles together and increase the contrast a bit.
2014-04-22 Benno Schulenberg <bensberg@justemail.net> 2014-04-22 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (shortcut_init): Put the movement keys in the * src/global.c (shortcut_init): Put the movement keys in the

View File

@ -1129,11 +1129,11 @@ void shortcut_init(void)
add_to_sclist(MMAIN, "M-S", do_toggle_void, SMOOTH_SCROLL, TRUE); add_to_sclist(MMAIN, "M-S", do_toggle_void, SMOOTH_SCROLL, TRUE);
add_to_sclist(MMAIN, "M-P", do_toggle_void, WHITESPACE_DISPLAY, TRUE); add_to_sclist(MMAIN, "M-P", do_toggle_void, WHITESPACE_DISPLAY, TRUE);
add_to_sclist(MMAIN, "M-Y", do_toggle_void, NO_COLOR_SYNTAX, TRUE); add_to_sclist(MMAIN, "M-Y", do_toggle_void, NO_COLOR_SYNTAX, TRUE);
add_to_sclist(MMAIN, "M-$", do_toggle_void, SOFTWRAP, TRUE);
add_to_sclist(MMAIN, "M-H", do_toggle_void, SMART_HOME, TRUE); add_to_sclist(MMAIN, "M-H", do_toggle_void, SMART_HOME, TRUE);
add_to_sclist(MMAIN, "M-I", do_toggle_void, AUTOINDENT, TRUE); add_to_sclist(MMAIN, "M-I", do_toggle_void, AUTOINDENT, TRUE);
add_to_sclist(MMAIN, "M-K", do_toggle_void, CUT_TO_END, TRUE); add_to_sclist(MMAIN, "M-K", do_toggle_void, CUT_TO_END, TRUE);
add_to_sclist(MMAIN, "M-L", do_toggle_void, NO_WRAP, TRUE); add_to_sclist(MMAIN, "M-L", do_toggle_void, NO_WRAP, TRUE);
add_to_sclist(MMAIN, "M-$", do_toggle_void, SOFTWRAP, TRUE);
add_to_sclist(MMAIN, "M-Q", do_toggle_void, TABS_TO_SPACES, TRUE); add_to_sclist(MMAIN, "M-Q", do_toggle_void, TABS_TO_SPACES, TRUE);
add_to_sclist(MMAIN, "M-B", do_toggle_void, BACKUP_FILE, TRUE); add_to_sclist(MMAIN, "M-B", do_toggle_void, BACKUP_FILE, TRUE);
add_to_sclist(MMAIN, "M-F", do_toggle_void, MULTIBUFFER, TRUE); add_to_sclist(MMAIN, "M-F", do_toggle_void, MULTIBUFFER, TRUE);
@ -1215,8 +1215,6 @@ const char *flagtostr(int flag)
return N_("Whitespace display"); return N_("Whitespace display");
case NO_COLOR_SYNTAX: case NO_COLOR_SYNTAX:
return N_("Color syntax highlighting"); return N_("Color syntax highlighting");
case SOFTWRAP:
return N_("Soft line wrapping");
case SMART_HOME: case SMART_HOME:
return N_("Smart home key"); return N_("Smart home key");
case AUTOINDENT: case AUTOINDENT:
@ -1224,7 +1222,9 @@ const char *flagtostr(int flag)
case CUT_TO_END: case CUT_TO_END:
return N_("Cut to end"); return N_("Cut to end");
case NO_WRAP: case NO_WRAP:
return N_("Long line wrapping"); return N_("Hard wrapping of overlong lines");
case SOFTWRAP:
return N_("Soft wrapping of overlong lines");
case TABS_TO_SPACES: case TABS_TO_SPACES:
return N_("Conversion of typed tabs to spaces"); return N_("Conversion of typed tabs to spaces");
case BACKUP_FILE: case BACKUP_FILE:
@ -1363,10 +1363,6 @@ sc *strtosc(char *input)
s->scfunc = do_toggle_void; s->scfunc = do_toggle_void;
s->execute = FALSE; s->execute = FALSE;
s->toggle = NO_COLOR_SYNTAX; s->toggle = NO_COLOR_SYNTAX;
} else if (!strcasecmp(input, "softwrap")) {
s->scfunc = do_toggle_void;
s->execute = FALSE;
s->toggle = SOFTWRAP;
} else if (!strcasecmp(input, "smarthome")) { } else if (!strcasecmp(input, "smarthome")) {
s->scfunc = do_toggle_void; s->scfunc = do_toggle_void;
s->execute = FALSE; s->execute = FALSE;
@ -1383,6 +1379,10 @@ sc *strtosc(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;