* [PATCH] Two missing $ signs from Bart's compadd -U fix.
@ 2008-10-28 21:38 Mikael Magnusson
0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2008-10-28 21:38 UTC (permalink / raw)
To: zsh-workers, Bart Schaefer
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-28 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-28 21:38 [PATCH] Two missing $ signs from Bart's compadd -U fix Mikael Magnusson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).