[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V2] possible new feature: a position+portion indicator on the
From: |
Marco Diego Aurélio Mesquita |
Subject: |
Re: [PATCH V2] possible new feature: a position+portion indicator on the righthand side |
Date: |
Sun, 26 Apr 2020 15:54:41 -0300 |
On Sun, Apr 26, 2020 at 12:17 PM Benno Schulenberg <address@hidden> wrote:
>
> V2: Use an array to remember what character plus attribute
> each scrollbar cell should contain.
>
> [This scrollbar is optionless for the moment, for ease of testing.]
>
> [The scrollbar is suppressed in softwrap mode, because it costs
> too much computation to determine the total number of chunks, and
> the number of displayed chunks is known only after the screen is
> fully drawn, not while drawing it.]
>
Attached patch makes scrollbar behave correctly in softwrap mode. It
is a bit of a waste to redraw the scrollbar every time a softwrapped
line is drawn or modified but it is very simple. The ISSET(SOFWRAP)
checks are redundant but are added to improve clarity of
intention/function.
Please consider it.
0001-Initial-softwrap-support-for-scrollbar.patch
Description: Text Data