diff --git a/src/winio.c b/src/winio.c index 37d8b574..5b502355 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1444,9 +1444,12 @@ void unparse_kbinput(char *output, size_t output_len) return; input = (int *)nmalloc(output_len * sizeof(int)); + for (i = 0; i < output_len; i++) input[i] = (int)output[i]; + unget_input(input, output_len); + free(input); }