Tony Mechelynck schrieb:
> Session loading may scroll up needlessly high
>
> The cursor line is always scrolled to the top of the window (plus 'scrolloff'
> if set), regardless of whether there are additional lines (and how many of
> them) after it.
>
> Reproducible: Always
>
> Steps to reproduce:
> 1. Edit (or view) a file which is longer than the window size.
> 2. G
> -- Note that the cursor is at the bottom of the window space. This is normal.
> 3. :mks!
> 4. :qa
> 5. vim -S
>
> Actual result:
> The cursor line (which is the last line of the file) is now near the top of
> the window, with a lot of ~ lines ("lines" after the end of file) below it.
>
> Expected result:
> The bottom line of the file should be at the bottom of the window (as it was
> at step 2), with no ~ lines showing.
>
> Additional info:
>
> Happens identically in GUI and Console modes.
> 'sessionoptions' is at its default value.
>
> Workaround:
> Use
>
> gg^O
>
> in each window after restarting, where ^O is obtained by hitting ctrl-v ctrl-o
> This must be done _manually_; ":windo normal gg^O" will change the current
> file in all windows.
>
> Using:
>
> openSUSE Linux 10.3
>
> VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 17 2008 02:10:07)
> Included patches: 1-231
> Compiled by [EMAIL PROTECTED]
> Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
> [...]
>
> It happened the same way at earlier patchlevels. I just thought I'd report it.
>
>
> Best regards,
> Tony.
I cannot reproduce the problem with gVim 7.1.203 on Win32
(Big version with GUI).
I checked with
gvim -u NONE -U NONE -i NONE -N
for :mks!, and
gvim -u NONE -U NONE -i NONE -N -S
to load the session.
I tested three different files (a 1370, 135, 40 lines).
After step 5, the cursor is always at the bottom (as expected).
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---