Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Two missing $ signs from Bart's compadd -U fix.
- X-seq: zsh-workers 25938
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>, "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: [PATCH] Two missing $ signs from Bart's compadd -U fix.
- Date: Tue, 28 Oct 2008 22:38:26 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=1rOvekCLCGt4sfFPrR0xNxJPYoCXdk4zzqQzjuwcMnc=; b=MsrnxMlxMjzFaEhDFsDTaJB9s8dx4YjN2KVpjXB4K5ODpnQ+VXBsWGjLsQ3QHSVWXC teawJBQ4RhgcwW2kcrjokJW0P3eDNxVK4Czne7T2O+D361HYuNLaJB4N/FDfXg2aOjsw C+BHlKMDfEWU9mnOhTGSCI6/Nz7i2eCdcVh8Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=uMkc2OXqIOu32ktPuIwfgXvRF81Zj9QinB3Wp4Y7WHVr20cE1PwIohJYHr8JxRy0ra frTNC+NLA1U8CtFvwG/5Hgo3+N/tpIRCLX64z1AiPRFUKoQVBy1JFTmEkrPDULEwZ4Jq l0NdRQ63ffSwSN24KcxMueGEtz5FIwXDMTY+I=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This manifested (at least) during spelling correction, for example ls
aeu<tab> became IPREFIXgba/.
---
Sorry for linewraps, but it's late and it's a pretty simple patch anyway :).
Completion/Unix/Type/_path_files | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index 28df7e1..378c454 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -732,7 +732,7 @@ for prepath in "$prepaths[@]"; do
compquote tmp4 tmp2 tmp1
for i in "$tmp1[@]"; do
_list_files tmp2 "$prepath$realpath${mid%/*/}"
- compadd $Uopt -Qf "$mopts[@]" -p "${Uopt:+IPREFIX}$linepath$tmp3/" \
+ compadd $Uopt -Qf "$mopts[@]" -p "${Uopt:+$IPREFIX}$linepath$tmp3/" \
-s "/$tmp4$i${Uopt:+$ISUFFIX}" \
-W "$prepath$realpath${mid%/*/}/" \
"$pfxsfx[@]" $listopts - "$tmp2"
@@ -763,7 +763,7 @@ for prepath in "$prepaths[@]"; do
else
# Not a pattern match
_list_files tmp1 "$prepath$realpath$testpath"
- compadd $Uopt -Qf -p "${Uopt:+IPREFIX}$linepath$tmp4" \
+ compadd $Uopt -Qf -p "${Uopt:+$IPREFIX}$linepath$tmp4" \
-s "${Uopt:+$ISUFFIX}" \
-W "$prepath$realpath$testpath" \
"$pfxsfx[@]" "$mopts[@]" $listopts -a tmp1
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author