nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 187843d2da2b3c7cae5a235d589bcf9e317513cf
parent 0f2dd8456fa268f45c6c94e6845cfd9e77a08b54
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 14 May 2020 18:47:50 +0200

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

The tiny version does not support bracketed pastes.

Diffstat:
Msrc/global.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -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)