diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 19:39:24 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 19:39:24 +0000 |
commit | 696d5258a5e785299aed9af34184e4f5150d8e99 (patch) | |
tree | 05d4f371c2d00c1e9807e0479a45dbc2aaaef119 | |
parent | 46ef83fdf450324f6372eb1a358c4b0773ebfd1d (diff) | |
download | termo-696d5258a5e785299aed9af34184e4f5150d8e99.tar.gz termo-696d5258a5e785299aed9af34184e4f5150d8e99.tar.xz termo-696d5258a5e785299aed9af34184e4f5150d8e99.zip |
Make sure to initialise key->modifiers on unmodified CSIs
-rw-r--r-- | termkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |