contrib/zsh_completion
changeset 39394 09f23b4f1be3
parent 39377 b4e7e1f09c09
child 39443 2815e0db4c54
--- a/contrib/zsh_completion	Sun Aug 26 16:42:28 2018 -0400
+++ b/contrib/zsh_completion	Wed Aug 22 09:12:22 2018 +0800
@@ -624,7 +624,7 @@
 
   if [[ $state == 'diff_files' ]]
   then
-    if [[ -n $opt_args[-r] ]]
+    if [[ -n ${opt_args[(I)-r|--rev]} ]]
     then
       _hg_files && ret=0
     else
@@ -870,7 +870,7 @@
 
   if [[ $state == 'revert_files' ]]
   then
-    if [[ -n $opt_args[-r] ]]
+    if [[ -n ${opt_args[(I)-r|--rev]} ]]
     then
       _hg_files && ret=0
     else