Smooth scroll display issue (maybe)

23 views
Skip to first unread message

Ernie Rael

unread,
Oct 24, 2022, 6:49:01 PM10/24/22
to vim...@googlegroups.com

Given starting with a single long line of:

with lots of text with lots of 1 2 3 4 5
 6 7 8 9 text with lots of text with lot
s of text with lots of text with lots of
 text                                   
~                                       
                      1,1           All

After CTRL-E there is

<<<7 8 9 text with lots of text with lot
s of text with lots of text with lots of
 text                                   
~                                       
~                                       
                      1,44          All

The characters " 6 " are lost, should the first screen line after the CTRL-E look like this?

<<< 6 7 8 9 text w...

Note this discrepancy doesn't show up if 'showbreak' is "+++".

-ernie

Bram Moolenaar

unread,
Oct 28, 2022, 5:59:17 AM10/28/22
to vim...@googlegroups.com, Ernie Rael
If you scroll then some text will not be visible, that is to be
expected. We also want to make sure the user understands that some part
of the line is not visibile, that is what we use the marker for. If you
want to see the text you need to scroll back, I think that's fine.

There are some corner cases, e.g. whether we allow the cursor to be
inside the marker. I think it's confusing thus I didn't do that, move
the cursor into the visible text. If space is small it might get
difficult though, so perhaps in some situation we might need to
compromise. This is an extra feature, nice when you want it but not
without complications. It actually works best if you are not caring to
much about the first line itself but about positioning the text in the
window nicely. Like for the 'splitscroll' option variants.

--
ARTHUR: ... and I am your king ....
OLD WOMAN: Ooooh! I didn't know we had a king. I thought we were an
autonomous collective ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Ernie Rael

unread,
Oct 29, 2022, 4:14:27 PM10/29/22
to vim...@googlegroups.com
On 22/10/28 2:59 AM, Bram Moolenaar wrote:
>> Given starting with a single long line of:
>>
>> with lots of text with lots of 1 2 3 4 5
>>  6 7 8 9 text with lots of text with lot
>> s of text with lots of text with lots of
>>  text
>> ~
>>                       1,1           All
>>
>> After CTRL-E there is
>>
>> <<<7 8 9 text with lots of text with lot
>> s of text with lots of text with lots of
>>  text
>> ~
>> ~
>>                       1,44          All
>>
>> The characters " 6 " are lost, should the first screen line after the
>> CTRL-E look like this?
>>
>> <<< 6 7 8 9 text w...
>>
>> Note this discrepancy doesn't show up if 'showbreak' is "+++".
> If you scroll then some text will not be visible, that is to be
> expected.

Sure. But typically, it is only text on the top line that becomes not
visible.

But I use "showbreak=+++" so it's not an issue for me; no text gets
hidden under the "+++". The subject has "(maybe)" just to be sure the
behavior is intentional.
Reply all
Reply to author
Forward
0 new messages