summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-25 13:26:19 -0300
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-25 13:26:19 -0300
commitc36a5e0f364d39d7a0add2a4db7088f645bd93c6 (patch)
treed88d46392a345817e606c28d989707a402be2bd9
parentba95aed6f1067dc577d8813625233982157167d9 (diff)
downloadmpv-c36a5e0f364d39d7a0add2a4db7088f645bd93c6.tar.bz2
mpv-c36a5e0f364d39d7a0add2a4db7088f645bd93c6.tar.xz
Revert "getch2: Avoid possible infinite loop"
This reverts commit ba95aed6f1067dc577d8813625233982157167d9.
-rw-r--r--osdep/getch2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osdep/getch2.c b/osdep/getch2.c
index e2ff398560..c19a410252 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -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;
}