Hello,

if utf-8 encoding is used, converted string can include CSI.

Thanks,
namsh

diff --git a/src/ui.c b/src/ui.c
index be5d8c5..0f6502e 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1691,8 +1691,16 @@ push_raw_key(char_u *s, int len)
     if (tmpbuf != NULL)
        s = tmpbuf;

-    while (len--)
-       inbuf[inbufcount++] = *s++;
+    for (; len--; s++)
+    {
+       inbuf[inbufcount++] = *s;
+       if (*s == CSI && tmpbuf)
+       {
+           /* Turn CSI into K_CSI. */
+           inbuf[inbufcount++] = KS_EXTRA;
+           inbuf[inbufcount++] = (int)KE_CSI;
+       }
+    }

     if (tmpbuf != NULL)
        vim_free(tmpbuf);

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui