terminal: decode_terminal_escape_sequence ignores previous value of *ev.
commit51bc99a17560d227cba1c41f4c9d0f480e94dcb4
authorKalle Olavi Niemitalo <kon@iki.fi>
Sat, 5 Aug 2006 08:08:48 +0000 (5 11:08 +0300)
committerMiciah Dashiel Butler Masters <miciah@FroodyComp.localdomain>
Sun, 6 Aug 2006 20:02:38 +0000 (6 20:02 +0000)
treeba1f7131e615d2845f2a686881c8df8d8915924c
parent9e30ee631ced843f26a264c351cfa1716e7e1941
terminal: decode_terminal_escape_sequence ignores previous value of *ev.

There is no need to check whether ev->ev == EVENT_KBD;
if decode_terminal_escape_sequence called
decode_terminal_mouse_escape_sequence, then the former neither modified
kbd.key nor passed &kbd to the latter, so kbd.key remains KBD_UNDEF.

If ev->ev was not checked, then it should not be trusted either.
So reinitialize the whole *ev if a keyboard event was indeed found.
src/terminal/kbd.c