From: David Lawrence Ramsey Date: Thu, 9 Dec 2004 17:00:15 +0000 (+0000) Subject: add missing reset X-Git-Tag: v1.3.6~221 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=164bf36ea8879502a98c7612ed913a2dc1d9a8f1;p=nano.git add missing reset git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2181 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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