I updated patch: https://gist.github.com/2886056
It should not check the character on cursor is double-width or not with looking mb_ptr2cell(ptr). It should check with looking mb_char2cells(mb_c) before update mb_c. Thanks. On Thursday, June 7, 2012 3:03:37 AM UTC+9, Bram Moolenaar wrote: > Yasuhiro Matsumoto wrote: > > > If precedes is '>', > > > > a b c > > AABBCC > > > > (AA BB CC mean mult-byte) > > > > Below should be > > > > > b c > > ><BBCC > > > > (< means trail of multi-byte) > > > > Below is a patch. > > > > https://gist.github.com/2881320 > > > > Bram, please check. > > Thanks for the patch. I'll check it out. > > -- > How To Keep A Healthy Level Of Insanity: > 6. In the memo field of all your checks, write "for sexual favors". > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ > \\\ an exciting new programming language -- http://www.Zimbu.org /// > \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
