blob: 13ad82462f2b3a4e859890eb20ab09f53844ab59 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Tests for vertical splits and filler lines in diff mode
2
3STARTTEST
4:so small.vim
Bram Moolenaarbed7bec2010-07-25 13:42:29 +02005:" Disable the title to avoid xterm keeping the wrong one.
6:set notitle noicon
Bram Moolenaar071d4272004-06-13 20:20:40 +00007/^1
8yG:new
9pkdd:w! Xtest
10ddGpkkrXoxxx:w! Xtest2
11:file Nop
12ggoyyyjjjozzzz
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
17ggpgg:let one = winline()
18j:let one = one . "-" . winline()
19j:let one = one . "-" . winline()
20j:let one = one . "-" . winline()
21j:let one = one . "-" . winline()
22j:let one = one . "-" . winline()
23gg:let two = winline()
24j:let two = two . "-" . winline()
25j:let two = two . "-" . winline()
26j:let two = two . "-" . winline()
27j:let two = two . "-" . winline()
28gg:let three = winline()
29j:let three = three . "-" . winline()
30j:let three = three . "-" . winline()
31j:let three = three . "-" . winline()
32j:let three = three . "-" . winline()
33j:let three = three . "-" . winline()
34j:let three = three . "-" . winline()
35:call append("$", one)
36:call append("$", two)
37:call append("$", three)
38:$-2,$w! test.out
Bram Moolenaara80888d2012-10-21 22:18:21 +020039:" Test that diffing shows correct filler lines
40:diffoff!
41:windo :bw!
42:enew
43:put =range(4,10)
44:1d _
45:vnew
46:put =range(1,10)
47:1d _
48:windo :diffthis
49:wincmd h
50:let w0=line('w0')
51:enew
52:put =w0
53:.w >> test.out
54:unlet! one two three w0
Bram Moolenaar071d4272004-06-13 20:20:40 +000055:qa!
56ENDTEST
57
581 aa
592 bb
603 cc
614 dd
625 ee