about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Core/_call13
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/Core/_call b/Completion/Core/_call
new file mode 100644
index 000000000..345dae50d
--- /dev/null
+++ b/Completion/Core/_call
@@ -0,0 +1,13 @@
+#autoload
+
+local tmp
+
+if zstyle -s ":completion:${curcontext}:${1}" command tmp; then
+  if [[ "$tmp" = -* ]]; then
+    eval "$tmp[2,-1]" "$argv[2,-1]"
+  else
+    eval "$tmp"
+  fi
+else
+  eval "$argv[2,-1]"
+fi