* _expand_alias call to compadd missing a --, patch
@ 2010-03-15 20:55 Mikael Magnusson
0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2010-03-15 20:55 UTC (permalink / raw)
To: zsh workers
alias foo=-break
foo<call _expand_alias>
_all_labels:compadd:39: bad option: -b
diff --git a/Completion/Base/Completer/_expand_alias
b/Completion/Base/Completer/_expand_alias
index aa42faf..24a367d 100644
--- a/Completion/Base/Completer/_expand_alias
+++ b/Completion/Base/Completer/_expand_alias
@@ -60,7 +60,7 @@ if [[ -n $tmp ]]; then
tmp="\\$tmp"
fi
fi
- $pre _wanted aliases expl alias compadd -UQ ${tmp%%[[:blank:]]##}
+ $pre _wanted aliases expl alias compadd -UQ -- ${tmp%%[[:blank:]]##}
elif (( $#pre )) && zstyle -t ":completion:${curcontext}:" complete; then
$pre _aliases -s "$sel" -S ''
else
--
Mikael Magnusson
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-15 20:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-15 20:55 _expand_alias call to compadd missing a --, patch 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).