Andy Wokula wrote:
> Andy Wokula schrieb:
>> Tony Mechelynck schrieb:
>>>> 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.
>>> 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.
>> I can reproduce it with your Session.vim (ah, it enables "rolodex mode")
>> -- by creating dummy folders and files, changing some options that produced
>> errors:
>> guifont, printfont, tabline.
>>
>> After another :mks! and restart with -S, the problem still persists ...
>
> I think the problem is 'winminheight' being set to zero ...
which is legal, and required by my "rolodex" mode. Having a single (white)
line of text between each (black) statusline would be quite ugly.
>
> and a value of 'winheight' big enough to make this a difference from
> 'winminheight'=1.
> 'winheight' at a large (or any other) value together with 'winminheight'=1
> works ok.
>
well, it is a bug then. Session save/restore scrolls needlessly high when
'winminheight' is zero...
Best regards,
Tony.
--
Has everyone noticed that all the letters of the word "database" are
typed with the left hand? Now the layout of the QWERTYUIOP typewriter
keyboard was designed, among other things, to facilitate the even use
of both hands. It follows, therefore, that writing about databases is
not only unnatural, but a lot harder than it appears.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---