Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] bracketed-paste: change quoting style
- X-seq: zsh-workers 36109
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] bracketed-paste: change quoting style
- Date: Tue, 11 Aug 2015 22:09:22 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=5jb ZVSQBLxI4LjCxpVqvp95Vbvo=; b=T/YcO7TIzJGXKsMj7+zr5Xc39nZvATWAMy8 GkmT4Dmr3yYMatLY5wc75Xk/AQFoB8cDVsrvyuEQjraXYqiy+KMRUdDVagi+zx4n enEDVvs56RnpJrgyHtLFMFpwLCSPr//ouMi/meRrWK+FQxK6fa1MHEiBY2jUKoug 5xwgjrDg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=5j bZVSQBLxI4LjCxpVqvp95Vbvo=; b=lROO1CuNbyGLcuQY2iACET/Ls4evtXkIww hh1bkCNX5ew7EjxHWOmXiFZLqUTi320UQ6HULiiyNm4mnLHIuf7h5Afeh4lESzJO di2mS9XidIwVl0v2HnLu4gTgp0pWmKhE7lnHiv45CzTQKT1zhbeeQFl6K8x246Os ze2RthhFs=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Make bracketed-paste use ''-quoting instead of \-quoting (when NUMERIC
is nonzero).
It's a bikeshed, of course, but I think '' is more readable.
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c
index 502e41e..5f2a580 100644
--- a/Src/Zle/zle_misc.c
+++ b/Src/Zle/zle_misc.c
@@ -779,7 +779,7 @@ bracketedpaste(char **args)
int n;
ZLE_STRING_T wpaste;
wpaste = stringaszleline((zmult == 1) ? pbuf :
- quotestring(pbuf, NULL, QT_BACKSLASH), 0, &n, NULL, NULL);
+ quotestring(pbuf, NULL, QT_SINGLE_OPTIONAL), 0, &n, NULL, NULL);
cuttext(wpaste, n, CUT_REPLACE);
if (!(zmod.flags & MOD_VIBUF)) {
kct = -1;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author