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

Re: Bug: bracketed-paste-magic + ztcp causes wrong pasted contents for CJK payloads



On Thu, Oct 15, 2015 at 6:54 AM, Chi Hsuan Yen <yan12125@xxxxxxxxx> wrote:
> This bug is similar to zsh-worker 36763 but different. With zsh commit
> 827d360, I have no problems in pasting CJK payloads with an empty ~/.zshrc,
> while problems occur with my own ~/.zshrc.  It's a strange bug. Please tell
> me if you can't reproduce it. I'll test on more platforms.

I am able to reproduce this, but not reliably.  Sometimes the paste
works as expected, sometimes not, though it seems to repeatedly fail
once it has failed for the first time.

If you are able to reproduce reliably, it would be interesting to
throw some diagnostics into bracketed-paste-magic, e.g. save the value
of $PASTED right after the call to "zle .bracketed-paste PASTED" and
see whether it's already wrong there or if "zle .read-command" is
getting back the wrong bytes later.



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