mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
tweaks: add two spaces and two comments, and drop an internal check
This commit is contained in:
parent
a373fa500a
commit
fc5d58ad97
@ -278,8 +278,8 @@
|
||||
## For quickly uppercasing or lowercasing the word under the cursor.
|
||||
## (These effectively do a Ctrl+Right followed by a Shift+Ctrl+Left,
|
||||
## and then pipe the selected text through a sed command.)
|
||||
#bind Sh-M-U "Oc[1;6D|sed 's/.*/\U&/'
" main
|
||||
#bind Sh-M-L "Oc[1;6D|sed 's/.*/\L&/'
" main
|
||||
# bind Sh-M-U "Oc[1;6D|sed 's/.*/\U&/'
" main
|
||||
# bind Sh-M-L "Oc[1;6D|sed 's/.*/\L&/'
" main
|
||||
|
||||
## If you would like nano to have keybindings that are more "usual",
|
||||
## such as ^O for Open, ^F for Find, ^H for Help, and ^Q for Quit,
|
||||
|
@ -1356,10 +1356,10 @@ void shortcut_init(void)
|
||||
add_to_sclist((MMOST|MBROWSER|MYESNO) & ~MFINDINHELP, "M-X", 0, do_toggle_void, NO_HELP);
|
||||
add_to_sclist(MMAIN, "M-C", 0, do_toggle_void, CONSTANT_SHOW);
|
||||
add_to_sclist(MMAIN, "M-S", 0, do_toggle_void, SOFTWRAP);
|
||||
add_to_sclist(MMAIN, "M-$", 0, do_toggle_void, SOFTWRAP);
|
||||
add_to_sclist(MMAIN, "M-$", 0, do_toggle_void, SOFTWRAP); /* Legacy keystroke. */
|
||||
#ifdef ENABLE_LINENUMBERS
|
||||
add_to_sclist(MMAIN, "M-N", 0, do_toggle_void, LINE_NUMBERS);
|
||||
add_to_sclist(MMAIN, "M-#", 0, do_toggle_void, LINE_NUMBERS);
|
||||
add_to_sclist(MMAIN, "M-#", 0, do_toggle_void, LINE_NUMBERS); /* Legacy keystroke. */
|
||||
#endif
|
||||
add_to_sclist(MMAIN, "M-P", 0, do_toggle_void, WHITESPACE_DISPLAY);
|
||||
#ifdef ENABLE_COLOR
|
||||
|
@ -842,10 +842,6 @@ int parse_escape_sequence(int starter)
|
||||
keycode = convert_SS3_sequence(key_buffer, key_buffer_len, &consumed);
|
||||
else if (starter == '[')
|
||||
keycode = convert_CSI_sequence(key_buffer, key_buffer_len, &consumed);
|
||||
#ifndef NANO_TINY
|
||||
else
|
||||
die("Bad sequence starter -- please report a bug\n");
|
||||
#endif
|
||||
|
||||
/* Remove the consumed sequence bytes from the keystroke buffer. */
|
||||
key_buffer_len -= consumed;
|
||||
|
Loading…
Reference in New Issue
Block a user