zsh: perform ~ expansion on _hg_root
authorBrendan Cully <brendan@kublai.com>
Tue, 31 Oct 2006 17:31:30 -0800
changeset 3605 9d815b074dcb
parent 3604 437489d8dfbf
child 3606 f8589028a7fa
zsh: perform ~ expansion on _hg_root
contrib/zsh_completion
--- a/contrib/zsh_completion	Tue Oct 31 17:24:42 2006 -0800
+++ b/contrib/zsh_completion	Tue Oct 31 17:31:30 2006 -0800
@@ -25,14 +25,14 @@
   do
     case "$words[$i]" in
       -R|--repository)
-        _hg_root="$words[$i+1]"
+        eval _hg_root="$words[$i+1]"
         _hg_cmd_globals+=("$words[$i]" "$_hg_root")
         (( i += 2 ))
         continue
       ;;
       -R*)
         _hg_cmd_globals+="$words[$i]"
-        _hg_root="${words[$i]#-R}"
+        eval _hg_root="${words[$i]#-R}"
        (( i++ ))
        continue
       ;;