aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-23 19:39:24 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-23 19:39:24 +0000
commit696d5258a5e785299aed9af34184e4f5150d8e99 (patch)
tree05d4f371c2d00c1e9807e0479a45dbc2aaaef119
parent46ef83fdf450324f6372eb1a358c4b0773ebfd1d (diff)
downloadtermo-696d5258a5e785299aed9af34184e4f5150d8e99.tar.gz
termo-696d5258a5e785299aed9af34184e4f5150d8e99.tar.xz
termo-696d5258a5e785299aed9af34184e4f5150d8e99.zip
Make sure to initialise key->modifiers on unmodified CSIs
-rw-r--r--termkey.c2
1 files changed, 2 insertions, 0 deletions
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;