bug-readline
[Top][All Lists]
Advanced

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

Re: rl_executing_keyseq wrong after rl_digit_argument call


From: Chet Ramey
Subject: Re: rl_executing_keyseq wrong after rl_digit_argument call
Date: Mon, 21 Aug 2023 11:12:42 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

On 8/20/23 6:34 PM, Grisha Levit wrote:
The change in [1] seems to break the ability of rl_trim_arg_from_keyseq to properly remove arguments provided as esc-prefixed digits -- the _rl_del_executing_keyseq call removes the digit from the key sequence but leaves the esc (and the digit is never added back).

$ bind -x '"\eX": ":"'
$ ^[2^[X
bash: bash_execute_unix_command: cannot find keymap for command

Thanks for the report. This line isn't the problem. _rl_arg_dispatch needs
to add keys to rl_executing_keyseq in the appropriate places.

Chet

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




reply via email to

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