:mksession writes wrong column number of cursor position in presence of 
multibyte characters.

I have been using vim-7.3.135 with this patch applied for several months … it 
works for me:

diff --git a/src/ex_docmd.c b/src/ex_docmd.c
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -10836,7 +10836,7 @@ put_view(fd, wp, add_edit, flagp, curren
            }
            else
            {
-               if (fprintf(fd, "normal! 0%dl", wp->w_cursor.col) < 0
+               if (fprintf(fd, "normal! 0%dl", wp->w_virtcol) < 0
                        || put_eol(fd) == FAIL)
                    return FAIL;
            }


-- 
Roland Eggner

Attachment: pgpxi6unxm0xL.pgp
Description: PGP signature

Raspunde prin e-mail lui