Lech Lorens wrote: > There are some cases when winrestview() does not restore the way a > window looked when winsaveview() was called. > Namely: the top line is not correctly restored which results in the > contents of the window being scrolled. > > The problem can be reproduced with by running the attached files: > - prepare.vim - execute "vim -S prepare.vim" to prepare files foo.txt > and bar.c for demonstration, > - reproduce.vim - execute "vim -S reproduce.vim" and press <F7> to see > how the window is split and the contents of the lower window are > scrolled so that the current line becomes the first one visible in the > window. > > I attached a patch (ugly-scroll.patch) which takes care of the problem.
Thanks! -- hundred-and-one symptoms of being an internet addict: 114. You are counting items, you go "0,1,2,3,4,5,6,7,8,9,A,B,C,D...". /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
