nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] bug with positioning in non-softwrap mode after the ove


From: Benno Schulenberg
Subject: Re: [Nano-devel] bug with positioning in non-softwrap mode after the overhaul
Date: Sun, 19 Mar 2017 18:14:18 +0100

On Fri, Mar 17, 2017, at 15:52, David Ramsey wrote:
> On Fri, Mar 17, 2017 at 7:39 AM, Benno Schulenberg
> <address@hidden> wrote:
> > I'm pretty sure that the mistake is in patch 0002. You can probably
> > elide rows_left, and then check for rows_from_tail being smaller than
> > editwinrows/2 instead of being nonzero.
> 
> Eliding rows_left will make it harder to debug, as gdb can trace a
> variable more easily than a function call, so for right now I've just
> fixed the rows_from_tail check.

The fix was not correct: it centered the bottom line of a file
when using positionlog and the bottom line was the cursor's last
position.  I've changed the patch to do what I had suggested --
I very seldom use a debugger.  :)

If it's not right, let me know.

Benno

-- 
http://www.fastmail.com - Choose from over 50 domains or use your own




reply via email to

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