blob: 877838ce1b3963e67a22141e137babb35d634280 [file] [log] [blame]
Bram Moolenaarfdf447b2013-02-26 17:21:29 +01001vim: set ft=vim fenc=latin1:
2
3Tests if :mksession saves cursor columns correctly in presence of tab and
4multibyte characters when fileencoding=latin1.
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=latin1
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
Bram Moolenaar6848c8b2013-09-22 15:03:38 +020036:w! test.out
Bram Moolenaarfdf447b2013-02-26 17:21:29 +010037: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ä Ä two multiByte characters
48Aäöü three mulTibyte characters