view 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
line wrap: on
line source

Test for 'scrollbind' causing an unexpected scroll of one of the windows.
STARTTEST
:so small.vim
:source test98a.in
:let topLineLeft = line('w0')
:wincmd p
:let topLineRight = line('w0')
:setl noscrollbind
:wincmd p
:setl noscrollbind
:q!
:%del _
:call setline(1, 'Difference between the top lines (left - right): ' . string(topLineLeft - topLineRight))
:w! test.out
:brewind
ENDTEST

STARTTEST
:qa!
ENDTEST