Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | Tests for vertical splits and filler lines in diff mode |
| 2 | |
| 3 | STARTTEST |
| 4 | :so small.vim |
Bram Moolenaar | bed7bec | 2010-07-25 13:42:29 +0200 | [diff] [blame^] | 5 | :" Disable the title to avoid xterm keeping the wrong one. |
| 6 | :set notitle noicon |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7 | /^1 |
| 8 | yG:new |
| 9 | pkdd:w! Xtest |
| 10 | ddGpkkrXoxxx:w! Xtest2 |
| 11 | :file Nop |
| 12 | ggoyyyjjjozzzz |
| 13 | :vert diffsplit Xtest |
| 14 | :vert diffsplit Xtest2 |
| 15 | :" jump to second window for a moment to have filler line appear at start of |
| 16 | :" first window |
| 17 | ggpgg:let one = winline() |
| 18 | j:let one = one . "-" . winline() |
| 19 | j:let one = one . "-" . winline() |
| 20 | j:let one = one . "-" . winline() |
| 21 | j:let one = one . "-" . winline() |
| 22 | j:let one = one . "-" . winline() |
| 23 | gg:let two = winline() |
| 24 | j:let two = two . "-" . winline() |
| 25 | j:let two = two . "-" . winline() |
| 26 | j:let two = two . "-" . winline() |
| 27 | j:let two = two . "-" . winline() |
| 28 | gg:let three = winline() |
| 29 | j:let three = three . "-" . winline() |
| 30 | j:let three = three . "-" . winline() |
| 31 | j:let three = three . "-" . winline() |
| 32 | j:let three = three . "-" . winline() |
| 33 | j:let three = three . "-" . winline() |
| 34 | j:let three = three . "-" . winline() |
| 35 | :call append("$", one) |
| 36 | :call append("$", two) |
| 37 | :call append("$", three) |
| 38 | :$-2,$w! test.out |
Bram Moolenaar | 9d2c8c1 | 2007-09-25 16:00:00 +0000 | [diff] [blame] | 39 | :unlet one two three |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 40 | :qa! |
| 41 | ENDTEST |
| 42 | |
| 43 | 1 aa |
| 44 | 2 bb |
| 45 | 3 cc |
| 46 | 4 dd |
| 47 | 5 ee |