Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1



Hi,

On Sun, Sep 06, 2015 at 05:57:52PM +0200, Axel Beckert wrote:
> while trying to paste a git commit message after 'git commit -m "'
> using a middle click of my mouse into an uxterm, nothing happened
> anymore afterwards. The pasted text didn't display and nothing of what
> I typed showed up anymore...
> 
> Until I pressed Ctrl-C. Then the text appeared without the prepended
> 'git commit -m "' on the commandline, plus a new prompt.
[...]
> Start a "zsh -f" in an uxterm. Any other UTF-8 capable terminal likely
> does it, too. Run the following two commands:
> 
> autoload -Uz bracketed-paste-magic
> zle -N bracketed-paste bracketed-paste-magic
> 
> Then type "echo ", but don't press enter. Copy an UTF-8 "ä" from
> somewhere else with the mouse and paste it after "echo ".
> 
> Nothing will happen. Type a few words. Nothing will happen either.
> 
> Then press Ctrl-C. The UTF-8 character and the typed words will appear
> where the "echo " had been before and you will be back at a new,
> emptied prompt.

Has nobody an idea what could cause this?

I'd be glad to see this fixed in 5.1.1 as I consider it quite annoying
(and confusing), but I have no idea what I should look for in the
code.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@xxxxxxxxxxxxxxx  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@xxxxxxxxx (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)



Messages sorted by: Reverse Date, Date, Thread, Author