summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/getch2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/getch2.c b/osdep/getch2.c
index c19a410252..4ac955788c 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -378,7 +378,7 @@ bool getch2(struct input_ctx *input_ctx)
continue; /* need more bytes to disambiguate */
} else {
/* backtrack, send as UTF-8 */
- getch2_pos = 0;
+ getch2_pos = 1;
c = getch2_buf[0];
}
utf8_len = bstr_parse_utf8_code_length(c);