Mercurial > vim
view src/testdir/test98a.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 | fc6f4a653265 |
line wrap: on
line source
" We don't want the status line to cause problems: set laststatus=0 redraw! let g:totalLines = &lines * 20 let middle = g:totalLines / 2 wincmd n wincmd o for i in range(1, g:totalLines) call setline(i, 'LINE ' . i) endfor exe string(middle) normal zt normal M aboveleft vert new for i in range(1, g:totalLines) call setline(i, 'line ' . i) endfor exe string(middle) normal zt normal M setl scb wincmd p call feedkeys(":setl scb\n\<C-w>\<C-w>", 't')