On 2/6/24 4:03 AM, Brian Cummings wrote:

In vi-mode with keyseq-timeout set to 0, I've noticed that Esc won't wait for another key to be pressed to see if it's part of a longer key sequence. Instead it appears to immediately execute the vi-movement-mode function. I'm wondering if this is intentional and/or some special exception?

Readline special-cases ESC in vi insertion mode and doesn't wait
indefinitely. This dates back to 2012; readline only uses the key sequence
timeout in this case if it's greater than 0.

https://lists.gnu.org/archive/html/bug-readline/2012-03/msg00002.html

Not waiting indefinitely preserved backwards compatibility.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/


Reply via email to