blob: e61483294894186189e75ede85625957d7562694 [file] [log] [blame]
Bram Moolenaarfdf447b2013-02-26 17:21:29 +01001vim: set ft=vim fenc=utf-8:
2
3Tests if :mksession saves cursor columns correctly in presence of tab and
4multibyte characters when fileencoding=utf-8.
5
6STARTTEST
7:so mbyte.vim
8:if !has('mksession')
9: e! test.ok
10: wq! test.out
11:endif
12:set sessionoptions=buffers splitbelow fileencoding=utf-8
13/^start:
14:vsplit
15j16|:split
16j16|:split
17j16|:split
18j8|:split
19j8|:split
20j16|:split
21j16|:split
22j16|:wincmd l
23/^start:
24:set nowrap
25j16|3zl:split
26j016|3zl:split
27j016|3zl:split
28j08|3zl:split
29j08|3zl:split
30j016|3zl:split
31j016|3zl:split
32j016|3zl:split
33:mksession! test.out
34:new test.out
35:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
36:w
37:qa!
38ENDTEST
39
40start:
41no multibyte chAracter
42 one leaDing tab
43 four leadinG spaces
44two consecutive tabs
45two tabs in one line
46one … multibyteCharacter
47a “b” two multiByte characters
48“c”1€ three mulTibyte characters