about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-13 11:55:06 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-13 11:55:06 +0000
commitbde4cfde51526bb8910c1dfbce8b6e4c4e1f5149 (patch)
tree0875c7bda2fc868f48da66104d403e5d5e9514a0 /Completion
parenta707108a7544b9c2e5bd99cf51a4c5ba08558ade (diff)
downloadzsh-bde4cfde51526bb8910c1dfbce8b6e4c4e1f5149.tar.gz
zsh-bde4cfde51526bb8910c1dfbce8b6e4c4e1f5149.tar.xz
zsh-bde4cfde51526bb8910c1dfbce8b6e4c4e1f5149.zip
new _generic widget to call completion with $WIDGET in function field of context (?)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Commands/_generic11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Commands/_generic b/Completion/Commands/_generic
new file mode 100644
index 000000000..9a6b4401f
--- /dev/null
+++ b/Completion/Commands/_generic
@@ -0,0 +1,11 @@
+#autoload
+
+local curcontext="$curcontext"
+
+if [[ -z "$curcontext" ]]; then
+  curcontext="${WIDGET}:::"
+else
+  curcontext="${WIDGET}:${curcontext#*:}"
+fi
+
+_main_complete