[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)
do_down(TRUE);
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.
stay.patch
Description: Text Data
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/01
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/02
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/02
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/03
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/03
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/05
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/05
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G),
Rishabh Dave <=
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/10
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/10
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/10
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/11
- [Nano-devel] how and when to rewrap the help text, Benno Schulenberg, 2016/12/11
- Re: [Nano-devel] how and when to rewrap the help text, Rishabh Dave, 2016/12/15
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/15
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/16
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Benno Schulenberg, 2016/12/18
- Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G), Rishabh Dave, 2016/12/18