[Top][All Lists]

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

Re: [Bug-readline] buggy interaction between bracketed-paste mode and vi

From: Mike Jonkmans
Subject: Re: [Bug-readline] buggy interaction between bracketed-paste mode and vi mode
Date: Fri, 13 Sep 2019 00:55:13 +0200

On Thu, Jul 25, 2019 at 11:38:41AM -0400, Chet Ramey wrote:
> On 7/21/19 1:52 AM, address@hidden wrote:
> > I am running readline 7.0 on a Gentoo Linux system.  I am using GNU bash 
> > version 4.4.23.  There is a bug in the way bracketed-paste mode interacts 
> > with vi mode.
> It turns out this is pretty complicated because of all the lookahead. I'll
> take a look at what can be done. Thanks for the report.
> Chet

What i think happens is, that the escape, from the bracketed paste, takes you 
command mode, then the '[' does nothing and the 200~ capitalizes to the end of 

So I use a workaround for this:

set keymap vi-command
"\e[200~": bracketed-paste-begin
"[200~": bracketed-paste-begin

set keymap vi-insert
"\e[200~": bracketed-paste-begin

Regards, Mike

Mike Jonkmans <address@hidden>
Always do right.  This will gratify some people and astonish the rest.
                -- Mark Twain

reply via email to

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