tweaks: exclude a bit of bracketed-paste code from the tiny version

The tiny version does not support bracketed pastes.
master
Benno Schulenberg 2020-05-14 18:47:50 +02:00
parent 0f2dd8456f
commit 187843d2da
1 changed files with 2 additions and 0 deletions

View File

@ -500,9 +500,11 @@ const keystruct *get_shortcut(int *keycode)
if (meta_key && *keycode < 0x20)
return NULL;
#ifndef NANO_TINY
/* During a paste at a prompt, ignore all command keycodes. */
if (bracketed_paste && *keycode != BRACKETED_PASTE_MARKER)
return NULL;
#endif
for (keystruct *sc = sclist; sc != NULL; sc = sc->next) {
if ((sc->menus & currmenu) && *keycode == sc->keycode)