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    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to