Mercurial > vim
annotate src/testdir/test_scrollbind.vim @ 28736:6fd9c7dff5e5
Added tag v8.2.4892 for changeset c428a4e53b9c86bf46f9c0ca07572b6f6c9c5c08
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 06 May 2022 19:00:06 +0200 |
parents | 08940efa6b4e |
children | d8fdafc4b390 |
rev | line source |
---|---|
11961
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Test for 'scrollbind' causing an unexpected scroll of one of the windows. |
21765
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
16710
diff
changeset
|
2 |
11961
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 func Test_scrollbind() |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " We don't want the status line to cause problems: |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 set laststatus=0 |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 let totalLines = &lines * 20 |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 let middle = totalLines / 2 |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 new | only |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 for i in range(1, totalLines) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 call setline(i, 'LINE ' . i) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 endfor |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 exe string(middle) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 normal zt |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 normal M |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 aboveleft vert new |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 for i in range(1, totalLines) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 call setline(i, 'line ' . i) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 endfor |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 exe string(middle) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 normal zt |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 normal M |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 " Execute the following two commands at once to reproduce the problem. |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 setl scb | wincmd p |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 setl scb |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 wincmd w |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 let topLineLeft = line('w0') |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 wincmd p |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 let topLineRight = line('w0') |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 setl noscrollbind |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
30 wincmd p |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
31 setl noscrollbind |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
32 call assert_equal(0, topLineLeft - topLineRight) |
0240e7e3d736
patch 8.0.0861: still many old style tests
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 endfunc |
16710
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
34 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
35 " Test for 'scrollbind' |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
36 func Test_scrollbind_opt() |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
37 new | only |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
38 set noscrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
39 set scrollopt=ver,jump scrolloff=2 nowrap noequalalways splitbelow |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
40 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
41 " Insert the text used for the test |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
42 append |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
43 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
44 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
45 start of window 1 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
46 . line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
47 . line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
48 . line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
49 . line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
50 . line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
51 . line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
52 . line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
53 . line 08 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 08 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
54 . line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
55 . line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
56 . line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
57 . line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
58 . line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
59 . line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
60 . line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
61 end of window 1 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
62 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
63 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
64 start of window 2 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
65 . line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
66 . line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
67 . line 03 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 03 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
68 . line 04 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 04 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
69 . line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
70 . line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
71 . line 07 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 07 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
72 . line 08 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 08 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
73 . line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
74 . line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
75 . line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
76 . line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
77 . line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
78 . line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
79 . line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
80 . line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
81 end of window 2 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
82 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
83 . |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
84 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
85 " Test using two windows open to one buffer, one extra empty window |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
86 split |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
87 new |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
88 wincmd t |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
89 resize 8 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
90 call search('^start of window 1$') |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
91 normal zt |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
92 set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
93 wincmd j |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
94 resize 7 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
95 call search('^start of window 2$') |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
96 normal zt |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
97 set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
98 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
99 " -- start of tests -- |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
100 " Test scrolling down |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
101 normal L5jHyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
102 wincmd b | normal pr0 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
103 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
104 wincmd b | normal pr1 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
105 wincmd t | normal L6jHyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
106 wincmd b | normal pr2 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
107 wincmd k | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
108 wincmd b | normal pr3 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
109 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
110 " Test scrolling up |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
111 wincmd t | normal H4k |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
112 wincmd j | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
113 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
114 wincmd b | normal pr4 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
115 wincmd k | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
116 wincmd b | normal pr5 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
117 wincmd k | normal 3k |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
118 wincmd t | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
119 wincmd j | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
120 wincmd b | normal pr6 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
121 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
122 wincmd b | normal pr7 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
123 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
124 " Test horizontal scrolling |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
125 set scrollopt+=hor |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
126 normal gg"zyyG"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
127 wincmd t | normal 015zly$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
128 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
129 wincmd k | normal y$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
130 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
131 wincmd k | normal 10jH7zhg0y$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
132 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
133 wincmd t | normal Hg0y$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
134 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
135 set scrollopt-=hor |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
136 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
137 wincmd b |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
138 call assert_equal([ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
139 \ '', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
140 \ '0 line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
141 \ '1 line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
142 \ '2 line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
143 \ '3 line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
144 \ '4 line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
145 \ '5 line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
146 \ '6 line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
147 \ '7 line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
148 \ '56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
149 \ 'UTSRQPONMLKJIHGREDCBA9876543210 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
150 \ '. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
151 \ '. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
152 \ ''], getline(1, '$')) |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
153 enew! |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
154 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
155 " ****** tests using two different buffers ***** |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
156 wincmd t | wincmd j | close |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
157 wincmd t | set noscrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
158 /start of window 2$/,/^end of window 2$/y |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
159 new |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
160 wincmd t | wincmd j | normal 4"zpGp |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
161 wincmd t |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
162 call search('^start of window 1$') |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
163 normal zt |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
164 set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
165 wincmd j |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
166 call search('^start of window 2$') |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
167 normal zt |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
168 set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
169 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
170 " -- start of tests -- |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
171 " Test scrolling down |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
172 normal L5jHyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
173 wincmd b | normal pr0 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
174 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
175 wincmd b | normal pr1 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
176 wincmd t | normal L6jHyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
177 wincmd b | normal pr2 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
178 wincmd k | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
179 wincmd b | normal pr3 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
180 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
181 " Test scrolling up |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
182 wincmd t | normal H4k |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
183 wincmd j | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
184 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
185 wincmd b | normal pr4 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
186 wincmd k | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
187 wincmd b | normal pr5 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
188 wincmd k | normal 3k |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
189 wincmd t | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
190 wincmd j | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
191 wincmd b | normal pr6 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
192 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
193 wincmd b | normal pr7 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
194 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
195 " Test horizontal scrolling |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
196 set scrollopt+=hor |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
197 normal gg"zyyG"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
198 wincmd t | normal 015zly$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
199 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
200 wincmd k | normal y$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
201 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
202 wincmd k | normal 10jH7zhg0y$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
203 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
204 wincmd t | normal Hg0y$ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
205 wincmd b | normal p"zpG |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
206 set scrollopt-=hor |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
207 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
208 wincmd b |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
209 call assert_equal([ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
210 \ '', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
211 \ '0 line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
212 \ '1 line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
213 \ '2 line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
214 \ '3 line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
215 \ '4 line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
216 \ '5 line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
217 \ '6 line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
218 \ '7 line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
219 \ '56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
220 \ 'UTSRQPONMLKJIHGREDCBA9876543210 02', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
221 \ '. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
222 \ '. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
223 \ ''], getline(1, '$')) |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
224 enew! |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
225 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
226 " Test 'syncbind' |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
227 wincmd t | set noscrollbind | normal ggL |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
228 wincmd j | set noscrollbind | normal ggL |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
229 set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
230 wincmd t | set scrollbind | normal G |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
231 wincmd j | normal G |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
232 syncbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
233 normal Hk |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
234 wincmd t | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
235 wincmd j | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
236 wincmd b | normal p |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
237 wincmd t | normal yy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
238 wincmd b | normal p |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
239 wincmd t | set noscrollbind | normal ggL |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
240 wincmd j | set noscrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
241 normal ggL |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
242 set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
243 wincmd t | set scrollbind |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
244 wincmd t | normal G |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
245 wincmd j | normal G |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
246 wincmd t | syncbind | normal Hk |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
247 wincmd j | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
248 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
249 wincmd b | normal p |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
250 wincmd t | wincmd j | normal yy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
251 wincmd b | normal p |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
252 wincmd t | normal H3k |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
253 wincmd j | normal H |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
254 wincmd t | normal Hyy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
255 wincmd b | normal p |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
256 wincmd t | wincmd j | normal yy |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
257 wincmd b | normal p |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
258 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
259 wincmd b |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
260 call assert_equal([ |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
261 \ '', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
262 \ '. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
263 \ 'start of window 2', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
264 \ 'start of window 2', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
265 \ '. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
266 \ '. line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
267 \ '. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12', |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
268 \ ], getline(1, '$')) |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
269 enew! |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
270 |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
271 new | only! |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
272 set scrollbind& scrollopt& scrolloff& wrap& equalalways& splitbelow& |
687ab2b5252b
patch 8.1.1357: test 37 is old style
Bram Moolenaar <Bram@vim.org>
parents:
11961
diff
changeset
|
273 endfunc |
21765
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
16710
diff
changeset
|
274 |
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
16710
diff
changeset
|
275 " vim: shiftwidth=2 sts=2 expandtab |