bug-bash
[Top][All Lists]
Advanced

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

Re: Prompt save/restore for vi movement argument


From: Chet Ramey
Subject: Re: Prompt save/restore for vi movement argument
Date: Tue, 18 Apr 2023 11:46:31 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

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    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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