nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH V3] possible new feature: a position+portion indicator on the


From: Marco Diego Aurélio Mesquita
Subject: Re: [PATCH V3] possible new feature: a position+portion indicator on the righthand side
Date: Fri, 1 May 2020 05:20:24 -0300

On Thu, Apr 30, 2020 at 9:23 PM Marco Diego Aurélio Mesquita
<address@hidden> wrote:
>
> Attached is an updated version of my patch. It behaves correctly on my
> quick tests.

After a few more tests, I had to include one more small fix. It looks
like the is_shorter global variable may get out of sync with contents
and that was causing some problems. When writing to a line which
vertically overlapped the scrollbar handle, the scrollbar was erased.
This happened because the condition to draw the scrollbar (is_shorter
&& thebar) was never true.

Attached patch fixes the problem in a very simple way, but I think the
is_shorter variable should be replaced by a function.

Please, review updated patch.

Attachment: 0001-Initial-softwrap-support-for-scrollbar.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]