tweaks: shorten a comment, and drop some conditionalizing

The conditionalizing was needed only for Slang -- see commit 009fb2fa.
master
Benno Schulenberg 2021-11-27 17:06:06 +01:00
parent be87f110ce
commit 93df6ab385
1 changed files with 2 additions and 4 deletions

View File

@ -518,7 +518,7 @@ functionptrtype interpret(int *keycode)
#endif /* ENABLE_BROWSER || ENABLE_HELP */
#if defined(NANO_TINY) && defined(ENABLE_LINENUMBERS)
/* Allow toggling line numbers (when enabled) also in the tiny version. */
/* Allow toggling line numbers also in the tiny version. */
void toggle_numbers(void)
{
TOGGLE(LINE_NUMBERS);
@ -1497,11 +1497,9 @@ void shortcut_init(void)
#ifdef ENABLE_SPELLER
add_to_sclist(MMAIN, "F12", KEY_F(12), do_spell, 0);
#endif
#if defined(KEY_CANCEL) && defined(KEY_SIC)
#ifndef NANO_TINY
add_to_sclist((MMOST & ~MMAIN) | MYESNO, "", KEY_CANCEL, do_cancel, 0);
add_to_sclist(MMAIN, "", KEY_SIC, do_insertfile, 0);
#endif
#ifndef NANO_TINY
/* Catch and ignore bracketed paste marker keys. */
add_to_sclist(MMOST|MBROWSER|MHELP|MYESNO, "", BRACKETED_PASTE_MARKER, do_nothing, 0);
#endif