Bram Moolenaar | 04c5c9e | 2013-07-09 13:44:59 +0200 | [diff] [blame^] | 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 |