On Thu, Jul 25, 2019 at 11:38:41AM -0400, Chet Ramey wrote:
> On 7/21/19 1:52 AM, vampyre...@gmail.com 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 
into
command mode, then the '[' does nothing and the 200~ capitalizes to the end of 
line.

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 <bash...@jonkmans.nl>
Always do right.  This will gratify some people and astonish the rest.
                -- Mark Twain

_______________________________________________
Bug-readline mailing list
Bug-readline@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to