nano-devel
[Top][All Lists]
Advanced

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

Re: Fwd: [RFC] a scroll bar on the right that shows position and portion


From: Benno Schulenberg
Subject: Re: Fwd: [RFC] a scroll bar on the right that shows position and portion
Date: Thu, 23 Apr 2020 20:45:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Op 23-04-2020 om 18:59 schreef Marco Diego Aurélio Mesquita:
> There is a comment about drawing the scrollbar in a wasteful way.
> Basically, when a line is updated and it overlaps the scrollbar
> marker, the marker char must be redrawn, otherwise it may be erased.

They shouldn't overlap.  The most efficient would be if the scrollbar
were a separate subwindow, one column wide and editwinrows high.

> So, what approach should I take?

Eh... I need to tell you what to do, but later you still want credit?
Just pick the correct solution: one that doesn't do silly things.

In the past year I have optimized the clearing/drawing of each line,
using wclrtoeol() instead of writing a series of blank characters.
Making this any less efficient is not desirable.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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