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

[PATCH] bracketed-paste: change quoting style



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