mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 14:56:55 +00:00
Revert "getch2: Avoid possible infinite loop"
This reverts commit ba95aed6f1
.
This commit is contained in:
parent
ba95aed6f1
commit
c36a5e0f36
@ -385,11 +385,11 @@ bool getch2(struct input_ctx *input_ctx)
|
||||
|
||||
if (utf8_len > 1) {
|
||||
state = STATE_UTF8;
|
||||
continue;
|
||||
} else if (utf8_len == 1)
|
||||
} else if (utf8_len == 1) {
|
||||
mp_input_put_key(input_ctx, c);
|
||||
|
||||
walk_buf(1);
|
||||
walk_buf(1);
|
||||
} else
|
||||
walk_buf(getch2_pos);
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user