about summary refs log tree commit diff
path: root/Completion/Base/Widget
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:16:02 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:16:02 +0000
commit86904a9aceea0c9511b1cf1759ffb1b31ca02e89 (patch)
treea8437691be27a766972ad689b49102c886267fbd /Completion/Base/Widget
parentfe4fed2195add78f4f4be8e52f3b5c2e83fb34fe (diff)
downloadzsh-86904a9aceea0c9511b1cf1759ffb1b31ca02e89.tar.gz
zsh-86904a9aceea0c9511b1cf1759ffb1b31ca02e89.tar.xz
zsh-86904a9aceea0c9511b1cf1759ffb1b31ca02e89.zip
moved from Completion/Commands/_generic
Diffstat (limited to 'Completion/Base/Widget')
-rw-r--r--Completion/Base/Widget/_generic11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Base/Widget/_generic b/Completion/Base/Widget/_generic
new file mode 100644
index 000000000..9a6b4401f
--- /dev/null
+++ b/Completion/Base/Widget/_generic
@@ -0,0 +1,11 @@
+#autoload
+
+local curcontext="$curcontext"
+
+if [[ -z "$curcontext" ]]; then
+  curcontext="${WIDGET}:::"
+else
+  curcontext="${WIDGET}:${curcontext#*:}"
+fi
+
+_main_complete