bug-readline
[Top][All Lists]
Advanced

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

[Bug-readline] keyseq-timeout applying to binding rhs


From: Carlos Pita
Subject: [Bug-readline] keyseq-timeout applying to binding rhs
Date: Thu, 16 Jul 2015 18:07:24 -0300

Hi Chet,

not sure whether this is a bug or not, but it feels weird.

Say in vi-mode I set the following bindings:

"^ [[d": "^[ Bi"
" ^[[c": " ^[Wi"

In my terminal this is:

<shift-left> => <esc>Bi
<shift-right> => <esc>Wi

After pressing <shift-left> the WORD movement takes about half a
second, a signal that probably keyseq-timeout is involved. But <esc>Bi
is not ambiguous at all and, indeed, typing that sequence by hand
won't incur the timeout (typing only <esc> does, but this is
expected).

Not sure but it seems to me that readline has all the information it
needs to disambiguate the sequence without waiting. Oddly enough,
setting keyseq-timeout to 0, so that it will wait forever for the
disambiguating key, makes the bindings complete instantaneously, as
expected (at least by me).

Cheers
--
Carlos



reply via email to

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