Subject: Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic)
From: Bart Schaefer <[email-masked]>
To: Axel Beckert <[email-masked]>, [email-masked]
Date: Sun, 8 May 2016 11:50:26 -0700
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On May 6, 10:53pm, Axel Beckert wrote:
}
} But with zsh 5.2 (and zsh git HEAD), it looks like this:
} 
}   % echo https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
} 
}   % echo "https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
} 
}   % echo 'https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
} 
} While the first example still works as expected, I consider the latter
} two examples to be some kind of regression. No backslashes should be
} added in these cases.

You want

    zstyle :bracketed-paste-magic paste-init backward-extend-paste

so that the quote marks that are already on the line are treated as part
of the pasted text.