bug-readline
[Top][All Lists]
Advanced

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

Re: Bug Report: Readline vi mode does not reset to insert mode before ex


From: Chet Ramey
Subject: Re: Bug Report: Readline vi mode does not reset to insert mode before executing commands
Date: Fri, 21 Jun 2024 14:25:21 -0400
User-agent: Mozilla Thunderbird

On 6/21/24 6:05 AM, M wrote:
*Version and Release Status:* Readline 8.2.010-1

*Machine and OS:* Linux artix 6.9.2-artix1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 08:20:18 +0000 x86_64 GNU/Linux

*Compilation Flags:* Not applicable

*Description of the Bug:* When using Readline's vi mode in Bash and transitioning from insert mode to command mode (normal mode) using the ESC key, subsequent commands executed do not automatically reset the mode to insert mode (|>| prompt) after pressing Enter to execute the command. Instead, the mode remains in normal mode (|:| prompt) until the command completes execution and returns to the shell prompt (|>| prompt).

This is not a bug. Readline should not enter vi insert mode until it is
called again to read a command. It doesn't know that vi insert mode will
be appropriate. What if the command being executed were `set -o emacs'?

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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