Make sure to initialise key->modifiers on unmodified CSIs
This commit is contained in:
parent
46ef83fdf4
commit
696d5258a5
|
@ -376,6 +376,8 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke
|
||||||
|
|
||||||
if(args > 1 && arg[1] != -1)
|
if(args > 1 && arg[1] != -1)
|
||||||
key->modifiers = arg[1] - 1;
|
key->modifiers = arg[1] - 1;
|
||||||
|
else
|
||||||
|
key->modifiers = 0;
|
||||||
|
|
||||||
key->flags = TERMKEY_KEYFLAG_SPECIAL;
|
key->flags = TERMKEY_KEYFLAG_SPECIAL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue