nano

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

commit b2acffe5bed62578bcf1e5e3e0c7123b4a0812bf
parent 2fef7f647d2b544eb97059eb4a1f56a5e2bb95b3
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 16 Jul 2018 18:14:26 +0200

input: stop <Alt+Insert> from entering "3~" into the buffer

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

diff --git a/src/winio.c b/src/winio.c @@ -1080,6 +1080,8 @@ int convert_sequence(const int *seq, size_t length, int *consumed) /* Esc [ 2 ~ == Insert on VT220/VT320/ * Linux console/xterm/Terminal. */ return KEY_IC; + else if (length > 4 && seq[4] == '~') + *consumed = 5; break; case '3': /* Esc [ 3 ~ == Delete on VT220/VT320/ * Linux console/xterm/Terminal. */