Make sure to initialise key->modifiers on unmodified CSIs

This commit is contained in:
Paul LeoNerd Evans 2008-02-23 19:39:24 +00:00
parent 46ef83fdf4
commit 696d5258a5
1 changed files with 2 additions and 0 deletions

View File

@ -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;