From 164bf36ea8879502a98c7612ed913a2dc1d9a8f1 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 9 Dec 2004 17:00:15 +0000 Subject: [PATCH] add missing reset git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2181 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/winio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/winio.c b/src/winio.c index 2471f7a6..c3b0ec90 100644 --- a/src/winio.c +++ b/src/winio.c @@ -193,6 +193,8 @@ void get_buffer(WINDOW *win) int wide_key_len; if (key_buffer[i].key_code) { + mbtowc(NULL, NULL, 0); + wide_key_len = 1; wide_key = key_buffer[i].key; } else -- 2.39.5