Condition is good now. I came back to take the respoisibility. To study the Vim script a little bit.
I submit the patch and test. I weaken the power of my shoulders. -------- Hello again. Nobuhiro Takasaki -- -- 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.
diff -r 10d35c8b50e3 src/getchar.c
--- a/src/getchar.c Mon Feb 24 03:32:00 2014 +0100
+++ b/src/getchar.c Sat Mar 08 20:34:04 2014 +0900
@@ -2207,9 +2207,13 @@
/* Don't allow mapping the first byte(s) of a
* multi-byte char. Happens when mapping
* <M-a> and then changing 'encoding'. */
- if (has_mbyte && MB_BYTE2LEN(c1)
- > (*mb_ptr2len)(mp->m_keys))
- mlen = 0;
+ {
+ char_u *p1 = mp->m_keys;
+ char_u *p2 = mb_unescape(&p1);
+ if (has_mbyte && p2 != NULL &&
+ MB_BYTE2LEN(c1) > MB_PTR2LEN(p2))
+ mlen = 0;
+ }
#endif
/*
* Check an entry whether it matches.
test106.in
Description: Binary data
test106.ok
Description: Binary data
