[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: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] enable searching (^W) in a help text (^G)
Date: Sat, 03 Dec 2016 16:59:37 +0100

On Sat, Dec 3, 2016, at 12:30, Benno Schulenberg wrote:
> With your patch applied, run 'LANGUAGE=en src/nano --ignore --smooth',
> then type: ^G M-/ ^W help <Enter> M-W M-W M-W M-W...
> See how the cursor jumps alternatingly from top line to bottom line.
> That is not the normal nano behavior for offscreen matches.
> (Strangely this only happens when the end of the buffer has been
> displayed, after an M-/ or multiple ^Vs.)

This is caused by the 'focusing = FALSE' in do_last_line().
Normally the main loop will set it back to TRUE, but as we're
in the help screen, we don't get back to the main loop, so it's
probably best to do 'focusing = TRUE' in the help loop too.


-- - Does exactly what it says on the tin

reply via email to

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