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 1
1
Tests for vertical splits and filler lines in diff mode
2
2
3
+ Also tests restoration of saved options by :diffoff.
4
+
3
5
STARTTEST
4
6
:so small.vim
5
7
:" Disable the title to avoid xterm keeping the wrong one.
@@ -10,8 +12,15 @@ pkdd:w! Xtest
10
12
ddGpkkrXoxxx:w! Xtest2
11
13
:file Nop
12
14
ggoyyyjjjozzzz
15
+ :set foldmethod=marker foldcolumn=4
16
+ :redir => nodiffsettings
17
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
18
+ :redir END
13
19
:vert diffsplit Xtest
14
20
:vert diffsplit Xtest2
21
+ :redir => diffsettings
22
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
23
+ :redir END
15
24
:" jump to second window for a moment to have filler line appear at start of
16
25
:" first window
17
26
ggpgg:let one = winline()
@@ -36,8 +45,30 @@ j:let three = three . "-" . winline()
36
45
:call append("$", two)
37
46
:call append("$", three)
38
47
:$-2,$w! test.out
39
- :" Test that diffing shows correct filler lines
48
+ :"
49
+ :" Test diffoff
40
50
: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
41
72
:windo :bw!
42
73
:enew
43
74
:put =range(4,10)
@@ -51,7 +82,7 @@ j:let three = three . "-" . winline()
51
82
:enew
52
83
:put =w0
53
84
:.w >> test.out
54
- :unlet! one two three w0
85
+ :unlet! one two three nodiffsettings diffsettings nd1 nd2 nd3 w0
55
86
:qa!
56
87
ENDTEST
57
88
Original file line number Diff line number Diff line change 1
1
2-4-5-6-8-9
2
2
1-2-4-5-8
3
3
2-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
4
44
1
Original file line number Diff line number Diff line change @@ -756,6 +756,8 @@ static char *(features[]) =
756
756
757
757
static int included_patches [] =
758
758
{ /* Add new patch number below this line */
759
+ /**/
760
+ 769 ,
759
761
/**/
760
762
768 ,
761
763
/**/
You can’t perform that action at this time.
0 commit comments