Mercurial > vim
annotate src/testdir/test98.in @ 5157:7a6ce0c426fe v7.4a.005
updated for version 7.4a.005
Problem: Scroll binding causes unexpected scroll.
Solution: Store the topline after updating scroll binding. Add a test.
(Lech Lorens)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 09 Jul 2013 13:44:59 +0200 |
parents | |
children | fa024ce48542 |
rev | line source |
---|---|
5157 | 1 Test for 'scrollbind' causing an unexpected scroll of one of the windows. |
2 STARTTEST | |
3 :so small.vim | |
4 :source test98a.in | |
5 :let topLineLeft = line('w0') | |
6 :wincmd p | |
7 :let topLineRight = line('w0') | |
8 :setl noscrollbind | |
9 :wincmd p | |
10 :setl noscrollbind | |
11 :q! | |
12 :%del _ | |
13 :call setline(1, 'Difference between the top lines (left - right): ' . string(topLineLeft - topLineRight)) | |
14 :w! test.out | |
15 :brewind | |
16 ENDTEST | |
17 | |
18 STARTTEST | |
19 :qa! | |
20 ENDTEST | |
21 |