~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/testdir/test47.in

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
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
 
24
:let diff_fdm = &fdm
 
25
:let diff_fdc = &fdc
 
26
:" repeat entering diff mode here to see if this saves the wrong settings
 
27
:diffthis
15
28
:" jump to second window for a moment to have filler line appear at start of
16
29
:" first window
17
30
ggpgg:let one = winline()
36
49
:call append("$", two)
37
50
:call append("$", three)
38
51
:$-2,$w! test.out
 
52
:"
 
53
:" Test diffoff
 
54
:diffoff!
 
55
1
 
56
:let &diff = 1
 
57
:let &fdm = diff_fdm
 
58
:let &fdc = diff_fdc
 
59
4
 
60
:diffoff!
 
61
:$put =nodiffsettings
 
62
:$put =diffsettings
 
63
1
 
64
:redir => nd1
 
65
:silent! :set diff? fdm? fdc? scb? crb? wrap?
 
66
:redir END
 
67

 
68
:redir => nd2
 
69
:silent! :set diff? fdm? fdc? scb? crb? wrap?
 
70
:redir END
 
71

 
72
:redir => nd3
 
73
:silent! :set diff? fdm? fdc? scb? crb? wrap?
 
74
:redir END
 
75

 
76
:$put =nd1
 
77
:$put =nd2
 
78
:$put =nd3
 
79
:$-39,$w >> test.out
 
80
:"
39
81
:" Test that diffing shows correct filler lines
40
 
:diffoff!
41
82
:windo :bw!
42
83
:enew
43
84
:put =range(4,10)
51
92
:enew
52
93
:put =w0
53
94
:.w >> test.out
54
 
:unlet! one two three w0
 
95
:unlet! one two three nodiffsettings diffsettings diff_fdm diff_fdc nd1 nd2 nd3 w0
55
96
:qa!
56
97
ENDTEST
57
98