Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 1/2] Update _acroread version detection for 9.x



Makes 9.x use the same options as 7.x and 8.x, rather than falling
through to the pre-7.x options.
---
 Completion/X/Command/_acroread |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Completion/X/Command/_acroread b/Completion/X/Command/_acroread
index f74168a..a32dc3b 100644
--- a/Completion/X/Command/_acroread
+++ b/Completion/X/Command/_acroread
@@ -26,12 +26,11 @@ if [[ -z $_acroread_version ]]; then
   fi
 fi
 
-if [[ $_acroread_version == [78].* ]]; then
+if [[ $_acroread_version == [789].* ]]; then
   local -a extra_args
-  if [[ $_acroread_version == 8.* ]]; then
-    extra_args=(-man '-installCertificate:server ip::server port')
-  else
-    extra_args=()
+  extra_args=()
+  if [[ $_acroread_version == [89].* ]]; then
+    extra_args+=(-man '-installCertificate:server ip::server port')
   fi
   _arguments -C \
     "${extra_args[@]}" \
-- 
1.7.1



Messages sorted by: Reverse Date, Date, Thread, Author