bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] problem after upgrade to 6.3


From: Chet Ramey
Subject: Re: [Bug-readline] problem after upgrade to 6.3
Date: Mon, 29 May 2017 16:53:38 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 5/28/17 3:29 PM, Nuzhna Pomoshch wrote:

> $ bind -m vi-command -p | grep delete-char
> # backward-delete-char (not bound)
> "\e[3~": delete-char
> # delete-char-or-list (not bound)
> # forward-backward-delete-char (not bound)
> 
> You will note that those are identical, yet (still) hitting the delete key
> (at the end of the line) pops up (arg: 3) on the readline 6.3 machine.
> 
> Any other ideas as to what could be causing this?

OK, I think I got it. I was able to reproduce it with this additional
detail. The issue is a failing readline command (delete-char with no chars
to delete, in this case) at the end of a multi-key sequences. The problem
is that readline wrongly chooses to back up the key sequence because the
command doesn't return 0. Readline needs to better validate the return code
before backtracking. This will be fixed in the next bash and readline
devel branch pushes.

Chet

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



reply via email to

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