On 2013-02-05 Tuesday at 15:43 +0100 Roland Eggner wrote: > :mksession writes wrong column number of cursor position in presence of > multibyte characters.
I got an idea, how a test case could look like. vim with my patch applied
yields S{1,2}.vim differing _only_ in badd line, not in line “normal! 05l”:
printf '%s\n' '"line" 1' '“line” 2 with multibyte characters' > example.txt
LC_ALL=en_US.utf8 vim -u NONE -c 'norm 2GE' -c 'mksession S1.vim|q' example.txt
LC_ALL=en_US.utf8 vim -u NONE -S S1.vim -c 'mksession S2.vim|q'
diff -u S{1,2}.vim
--- S1.vim 2013-02-05 18:00:10.430654332 +0100
+++ S2.vim 2013-02-05 18:01:11.234650173 +0100
@@ -12,7 +12,7 @@
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
-badd +0 example.txt
+badd +1 example.txt
args example.txt
edit example.txt
set splitbelow splitright
--
Roland Eggner
pgpen3OJqV90A.pgp
Description: PGP signature
