Yakov Lerner wrote:
> I see a case in which winrestview() work incorrectly after PageDown
> near end-of-file. (This is in the context of scrollfix plugin.)
>
> To reproduce:
>
> % vim -u NONE -c 'so x.vim' # x.vim is below
> :help help " have some text
> :set nu " see line numbers
> press seevral ArrowDown to see how x.vim works, works OK, cursor is on 5th
> line
> G OK, cursor is on 5th line
> <PageDown>
> -- now this seems to be a bug, cursor is at top line instead of 5th line
> :echo g:last " g:last shows how the last winrestview() was performed
> {'lnum': 7336, 'leftcol': 0, 'col': 1, 'topfill': 0, 'topline': 7332,
> 'coladd': 0, 'skipc
> ol': 0, 'curswant': 1}
> NB: 'topline' is 7332 but winrestview() incorrectly ignored the 'topline'.
>
> The same wrong behaviour can be observed even with small 3-line file.
It works just fine for me. Both with 7.0 and with all the latest patches.
--
CRONE: Who sent you?
ARTHUR: The Knights Who Say Ni!
CRONE: Aaaagh! (she looks around in rear) No! We have no shrubberies here.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///