nano-devel
[Top][All Lists]
Advanced

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

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


From: Brand Huntsman
Subject: Re: [RFC] a scroll bar on the right that shows position and portion
Date: Thu, 23 Apr 2020 19:19:08 -0600
User-agent: -

On 20:24 Thu 23-Apr-2020, Marco Diego Aurélio Mesquita wrote:
> > Any chance it could adjust indicator height to the ratio of edit
> > window height and total buffer length?
>
> The current implementation makes H_i *proportional* to the ratio
> H_w/B_l . That means the bigger the buffer is, the smaller is
> indicator height. And that is the way most scroll bars I know work.

Ignore that, it works as expected (faulty testing).

The patch is missing some spaces between "if(" and "for(".

Maybe add two colors for scrollbar indicator and background. The A_DIM
is a good default (if more than just xterm supports it) but anyone who
enables scrollbar on urxvt or another brokwn terminal could change the
colors to make it work. You can clean up the attached patch and merge it
into the scrollbar patch if custom colors are okay.

Attachment: 0002-scrollbar-colors.patch
Description: Text Data


reply via email to

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