about summary refs log tree commit diff
path: root/Src/Zle/zle_thingy.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-08-20 12:28:05 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-08-20 12:28:05 +0000
commit1229d05c19453a344d696f3fc95fad4115b075b5 (patch)
tree139bdf537c448ad5518a27946ce2ce7e42b29619 /Src/Zle/zle_thingy.c
parent4220133567baadc04b46d80803e382a7f87a42f3 (diff)
downloadzsh-1229d05c19453a344d696f3fc95fad4115b075b5.tar.gz
zsh-1229d05c19453a344d696f3fc95fad4115b075b5.tar.xz
zsh-1229d05c19453a344d696f3fc95fad4115b075b5.zip
fix default completion module loading, use compctl if it hasn't been loaded already and no completion widgets have been defined (17567)
Diffstat (limited to 'Src/Zle/zle_thingy.c')
-rw-r--r--Src/Zle/zle_thingy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index 2946ea209..7d6c5103e 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -601,6 +601,8 @@ bin_zle_complete(char *name, char **args, char *ops, char func)
 	zwarnnam(name, "widget name `%s' is protected", args[0], 0);
 	return 1;
     }
+    hascompwidgets++;
+
     return 0;
 }