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