From 696d5258a5e785299aed9af34184e4f5150d8e99 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 23 Feb 2008 19:39:24 +0000 Subject: [PATCH] Make sure to initialise key->modifiers on unmodified CSIs --- termkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/termkey.c b/termkey.c index 805f7af..d511b4a 100644 --- a/termkey.c +++ b/termkey.c @@ -376,6 +376,8 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke if(args > 1 && arg[1] != -1) key->modifiers = arg[1] - 1; + else + key->modifiers = 0; key->flags = TERMKEY_KEYFLAG_SPECIAL;