On 4/15/23 11:42 PM, Grisha Levit wrote:
Originally identified in [1] (FWIW, I only see the message in the archive,
not in my inbox).

[1]: https://lists.gnu.org/archive/html/bug-bash/2023-04/msg00043.html

bash --norc -o vi -in <<<$'\ec1234567'
(arg: 123456) Segmentation fault

I think it's just a matter of save/restore_prompt

Thanks for the report. If you're going to add a rl_restore_prompt call to
_rl_vi_arg_dispatch, you need to call rl_save_prompt in both the callback
and non-callback code paths in rl_domove_read_callback, like in
rl_digit_argument.

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


Reply via email to