Bram Moolenaar | fdf447b | 2013-02-26 17:21:29 +0100 | [diff] [blame] | 1 | vim: set ft=vim fenc=latin1: |
| 2 | |
| 3 | Tests if :mksession saves cursor columns correctly in presence of tab and |
| 4 | multibyte characters when fileencoding=latin1. |
| 5 | |
| 6 | STARTTEST |
| 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 |
| 15 | j16|:split |
| 16 | j16|:split |
| 17 | j16|:split |
| 18 | j8|:split |
| 19 | j8|:split |
| 20 | j16|:split |
| 21 | j16|:split |
| 22 | j16|:wincmd l |
| 23 | /^start: |
| 24 | :set nowrap |
| 25 | j16|3zl:split |
| 26 | j016|3zl:split |
| 27 | j016|3zl:split |
| 28 | j08|3zl:split |
| 29 | j08|3zl:split |
| 30 | j016|3zl:split |
| 31 | j016|3zl:split |
| 32 | j016|3zl:split |
| 33 | :mksession! test.out |
| 34 | :new test.out |
| 35 | :v/\(^ *normal! 0\|^ *exe 'normal!\)/d |
Bram Moolenaar | 6848c8b | 2013-09-22 15:03:38 +0200 | [diff] [blame] | 36 | :w! test.out |
Bram Moolenaar | fdf447b | 2013-02-26 17:21:29 +0100 | [diff] [blame] | 37 | :qa! |
| 38 | ENDTEST |
| 39 | |
| 40 | start: |
| 41 | no multibyte chAracter |
| 42 | one leaDing tab |
| 43 | four leadinG spaces |
| 44 | two consecutive tabs |
| 45 | two tabs in one line |
| 46 | one ä multibyteCharacter |
| 47 | aä Ä two multiByte characters |
| 48 | Aäöü three mulTibyte characters |