Andy Wokula wrote:
> 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).
> 

Hm. I have both a vimrc and a viminfo (no gvimrc though), and I am on Linux. I 
wonder what causes the behaviour I see.

I'm posting my Session.vim, which is not for the minimum testcase, as 
http://users.skynet.be/antoine.mechelynck/vim/Session.vim


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
242. You turn down a better-paying job because it doesn't come with
      a free e-mail account.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui