On 2/12/25 10:40 PM, Justin Donnelly wrote:
Hi!
This isn't a bug, but I have attached a patch for a new feature that I hope you'll consider for inclusion in Readline. I just recently switched to using vi mode in Bash, and have noticed the Readline arguments in the prompt (eg `(arg: 2)'). This functionality is also in emacs mode, but I don't think I ever noticed it (probably because I don't know emacs well enough). When the args are added to the prompt, it shifts the text, which can be distracting. My patch adds a Readline variable to disable this functionality. By default, Readline will show the args in the prompt, just as it does now. But if a user sets the `show-arg-in-prompt' variable to `off', the args won't show in the prompt.

Thanks for the patch. I'll consider it for a future readline version.

Chet

--
``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