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.
--
Around computers it is difficult to find the correct unit of time to
measure progress. Some cathedrals took a century to complete. Can you
imagine the grandeur and scope of a program that would take as long?
-- Epigrams in Programming, ACM SIGPLAN Sept. 1982
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---