[Top][All Lists]

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

Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G)

From: Rishabh Dave
Subject: Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G)
Date: Fri, 9 Dec 2016 17:34:00 +0530

Attached patch adds the ability to roughly stay in the same area when
terminal size changes. However, same happens when window is also
adjusted horizontally. That is unlike the original behaviour. Is there
a way to restore the edittop (instead of current) and then fill the
editwin with the text? This would make behaviour for horizontal size
changes perfect. Methods analogous to the code in current patch aren't
working.  Or that is fine?

I have tried following code, by adding it after the display_buffer() -

    if (redisplaying)
        while (openfile->edittop->lineno < saved_top_lineno)

But openfile->edittop->lineno holds line number of the last line
(instead it should have been holding line number of first line), which
is why this won't work.

Attachment: stay.patch
Description: Text Data

reply via email to

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