When type 'ra' with linewised lines, characters will be replaced. But if the 
characters are multi-byte, some characters are remaining as original.
Below is a patch. Please check and include.

https://gist.github.com/mattn/5054510

diff -r 8b86b69546a9 src/ops.c
--- a/src/ops.c Wed Feb 20 21:26:00 2013 +0100
+++ b/src/ops.c Thu Feb 28 14:41:31 2013 +0900
@@ -2194,7 +2194,9 @@
                {
                    /* This is slow, but it handles replacing a single-byte
                     * with a multi-byte and the other way around. */
-                   oap->end.col += (*mb_char2len)(c) - (*mb_char2len)(n);
+
+                   if (curwin->w_cursor.lnum == oap->end.lnum)
+                       oap->end.col += (*mb_char2len)(c) - (*mb_char2len)(n);
                    n = State;
                    State = REPLACE;
                    ins_char(c);


- Yasuhiro Matsumoto

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui