Re: [Mutt] #681: rc of mutt_display_message differs between builtin
#681: rc of mutt_display_message differs between builtin and external pager
Comment (by Paul Walker):
{{{
On Wed, May 21, 2008 at 11:23:16PM -0500, Kyle Wheeler wrote:
> Set $prompt_after.
Ah. Yes, that does it; hitting space (and possibly other keys) at the
Command prompt gives the same effect as hitting page down when it returns
to
the index. Definitely not what's expected.
From a quick look the original submitter is partially right; the builtin
pager code has (at least) two types of logic embedded in it. Some of it to
do with displaying in the pager, and some of it relates to index/other
control.
The solution which comes to mind is to put the control logic out of the
pager into another function; that function can then be passed the pressed
key, and convert it into whatever is appropriate as is currently done in
the
pager. Hopefully this should avoid creating a function with a whole load
of
parameters.
If anyone more familiar with the code can see a problem with this, now
would
be a good time to say so. :-)
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/681#comment:>