File tree Expand file tree Collapse file tree 3 files changed +75
-2
lines changed
Expand file tree Collapse file tree 3 files changed +75
-2
lines changed Original file line number Diff line number Diff line change 11Tests for vertical splits and filler lines in diff mode
22
3+ Also tests restoration of saved options by :diffoff.
4+
35STARTTEST
46:so small.vim
57:" Disable the title to avoid xterm keeping the wrong one.
@@ -10,8 +12,15 @@ pkdd:w! Xtest
1012ddGpkkrXoxxx:w! Xtest2
1113:file Nop
1214ggoyyyjjjozzzz
15+ :set foldmethod=marker foldcolumn=4
16+ :redir => nodiffsettings
17+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
18+ :redir END
1319:vert diffsplit Xtest
1420:vert diffsplit Xtest2
21+ :redir => diffsettings
22+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
23+ :redir END
1524:" jump to second window for a moment to have filler line appear at start of
1625:" first window
1726ggpgg:let one = winline()
@@ -36,8 +45,30 @@ j:let three = three . "-" . winline()
3645:call append("$", two)
3746:call append("$", three)
3847:$-2,$w! test.out
39- :" Test that diffing shows correct filler lines
48+ :"
49+ :" Test diffoff
4050:diffoff!
51+ :$put =nodiffsettings
52+ :$put =diffsettings
53+ 1
54+ :redir => nd1
55+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
56+ :redir END
57+
58+ :redir => nd2
59+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
60+ :redir END
61+
62+ :redir => nd3
63+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
64+ :redir END
65+
66+ :$put =nd1
67+ :$put =nd2
68+ :$put =nd3
69+ :$-39,$w >> test.out
70+ :"
71+ :" Test that diffing shows correct filler lines
4172:windo :bw!
4273:enew
4374:put =range(4,10)
@@ -51,7 +82,7 @@ j:let three = three . "-" . winline()
5182:enew
5283:put =w0
5384:.w >> test.out
54- :unlet! one two three w0
85+ :unlet! one two three nodiffsettings diffsettings nd1 nd2 nd3 w0
5586:qa!
5687ENDTEST
5788
Original file line number Diff line number Diff line change 112-4-5-6-8-9
221-2-4-5-8
332-3-4-5-6-7-8
4+
5+
6+ nodiff
7+ foldmethod=marker
8+ foldcolumn=4
9+ noscrollbind
10+ nocursorbind
11+ wrap
12+
13+
14+ diff
15+ foldmethod=diff
16+ foldcolumn=2
17+ scrollbind
18+ cursorbind
19+ nowrap
20+
21+
22+ nodiff
23+ foldmethod=marker
24+ foldcolumn=4
25+ noscrollbind
26+ nocursorbind
27+ wrap
28+
29+
30+ nodiff
31+ foldmethod=marker
32+ foldcolumn=4
33+ noscrollbind
34+ nocursorbind
35+ wrap
36+
37+
38+ nodiff
39+ foldmethod=marker
40+ foldcolumn=4
41+ noscrollbind
42+ nocursorbind
43+ wrap
4441
Original file line number Diff line number Diff line change @@ -756,6 +756,8 @@ static char *(features[]) =
756756
757757static int included_patches [] =
758758{ /* Add new patch number below this line */
759+ /**/
760+ 769 ,
759761/**/
760762 768 ,
761763/**/
You can’t perform that action at this time.
0 commit comments