zsh: fix completions with relative paths
authorSteve Borho <steve@borho.org>
Tue, 05 Dec 2006 21:35:44 -0600
changeset 3817 45a751d73080
parent 3816 248a952c0d17
child 3818 bcdab0b2a6f5
zsh: fix completions with relative paths hg add ../foo/bar[TAB] now does what you expect
contrib/zsh_completion
--- a/contrib/zsh_completion	Tue Dec 05 21:30:04 2006 -0600
+++ b/contrib/zsh_completion	Tue Dec 05 21:35:44 2006 -0600
@@ -178,7 +178,7 @@
 }
 
 _hg_status() {
-  status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 . 2>/dev/null)"})
+  status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 ./$PREFIX 2>/dev/null)"})
 }
 
 _hg_unknown() {