[Top][All Lists]

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

Re: Readline bug?

From: Chet Ramey
Subject: Re: Readline bug?
Date: Tue, 22 Jan 2019 08:52:48 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

On 1/21/19 10:01 PM, Greg Bell wrote:
> Hi Chet et al,
> On bash 4.3.48 (Ubuntu 16.04), \C-e doesn't work to move me to the end of
> line when in vi command mode.

Thanks for the report. This has been there forever. The default readline
vi command-mode keymap has ^E bound to switch to emacs editing mode. Since
bash uses `set -o emacs' for that, the bash readline initialization code
unbinds the key sequence. It needs to make sure that the function it's
bound to is still rl_emacs_editing_mode.

Here's a patch that fixes it.


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

Attachment: bash-vi-ctrl-e-binding.patch
Description: Text document

reply via email to

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