mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
getch2: Fix incorrect test
Keycode length wasn't checked in one case because of missing parentheses. This was accidentally broken in my previous commit to the file. Most likely the error had no practical effect; the length checks are unreliable in any case as they can be satisfied by unrelated data corresponding to other keypresses. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24535 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
eb4051342f
commit
21038d9e70
@ -200,7 +200,7 @@ void getch2(void)
|
||||
goto found;
|
||||
}
|
||||
}
|
||||
if (c == '[' || c == 'O' && getch2_len >= 3) {
|
||||
if ((c == '[' || c == 'O') && getch2_len >= 3) {
|
||||
int c = getch2_buf[2];
|
||||
const short ctable[] = {
|
||||
KEY_UP, KEY_DOWN, KEY_RIGHT, KEY_LEFT, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user