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: Marco Diego Aurélio Mesquita
Subject: Re: Fwd: [RFC] a scroll bar on the right that shows position and portion
Date: Thu, 23 Apr 2020 16:17:03 -0300

On Thu, Apr 23, 2020 at 3:46 PM Benno Schulenberg <address@hidden> wrote:
>
>
> 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.
>

Sorry. When I asked what approach I should take, I meant "what
approach has the higher chance of getting accepted". I didn't thought
about using another subwindow because that is not how line numbers are
drawn. Anyway, I'll redo it the way you're asking.

Thanks!



reply via email to

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