Skip to content

Commit a4e29f3

Browse files
committed
updated for version 7.4a.033
Problem: Test 98 always passes. Solution: Include test98a.in in test98.in, execute the crucial command in one line. (Yukihiro Nakadaira)
1 parent bb97b61 commit a4e29f3

3 files changed

Lines changed: 25 additions & 29 deletions

File tree

src/testdir/test98.in

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11
Test for 'scrollbind' causing an unexpected scroll of one of the windows.
22
STARTTEST
33
:so small.vim
4-
:source test98a.in
4+
:" We don't want the status line to cause problems:
5+
:set laststatus=0
6+
:let g:totalLines = &lines * 20
7+
:let middle = g:totalLines / 2
8+
:wincmd n
9+
:wincmd o
10+
:for i in range(1, g:totalLines)
11+
: call setline(i, 'LINE ' . i)
12+
:endfor
13+
:exe string(middle)
14+
:normal zt
15+
:normal M
16+
:aboveleft vert new
17+
:for i in range(1, g:totalLines)
18+
: call setline(i, 'line ' . i)
19+
:endfor
20+
:exe string(middle)
21+
:normal zt
22+
:normal M
23+
:" Execute the following two command at once to reproduce the problem.
24+
:setl scb | wincmd p
25+
:setl scb
26+
:wincmd w
527
:let topLineLeft = line('w0')
628
:wincmd p
729
:let topLineRight = line('w0')

src/testdir/test98a.in

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ static char *(features[]) =
727727

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
33,
730732
/**/
731733
32,
732734
/**/

0 commit comments

Comments
 (0)