From c36a5e0f364d39d7a0add2a4db7088f645bd93c6 Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Thu, 25 Jul 2013 13:26:19 -0300 Subject: Revert "getch2: Avoid possible infinite loop" This reverts commit ba95aed6f1067dc577d8813625233982157167d9. --- osdep/getch2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'osdep') 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; } -- cgit v1.2.3