commit 93df6ab385543190fd78130f662415d58f32cbbf
parent be87f110ce3bcb5ce7dfd5926c8d0088a51f3bcc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 27 Nov 2021 17:06:06 +0100
tweaks: shorten a comment, and drop some conditionalizing
The conditionalizing was needed only for Slang -- see commit 009fb2fa.
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -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