bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] Escape sequence handling fails when an event hook is


From: Chet Ramey
Subject: Re: [Bug-readline] Escape sequence handling fails when an event hook is installed
Date: Thu, 12 Sep 2013 21:42:06 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

On 9/12/13 8:57 AM, Mike Miller wrote:

> The following patch to readline git master resolves this issue for me.
> Does this look like a reasonable fix?
> 
> ---
> 
> diff --git a/isearch.c b/isearch.c
> index 712b9ea..d830f99 100644
> --- a/isearch.c
> +++ b/isearch.c
> @@ -393,7 +393,7 @@ _rl_isearch_dispatch (cxt, c)
>        XXX - since _rl_input_available depends on the application-
>        settable keyboard timeout value, this could alternatively
>        use _rl_input_queued(100000) */
> -      if (cxt->lastc == ESC && _rl_input_available ())
> +      if (cxt->lastc == ESC && (_rl_any_typein () || _rl_input_available ()))
>       rl_execute_next (ESC);
>        return (0);
>      }

Thanks, this is a good fix.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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