about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-19 13:42:51 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-19 13:42:51 +0000
commitad0c81a554fa248b154bb177ac2eb408fc8a1a64 (patch)
tree64e08cef1464f71eeb14ce6e8ddc78b8addb3756 /Src/Zle
parent6a7c002a7c9f7d695e3cb055d8285f7f18749ccd (diff)
downloadzsh-ad0c81a554fa248b154bb177ac2eb408fc8a1a64.tar.gz
zsh-ad0c81a554fa248b154bb177ac2eb408fc8a1a64.tar.xz
zsh-ad0c81a554fa248b154bb177ac2eb408fc8a1a64.zip
ensure zsh/compctl (ick!) module is loaded when zle is loaded from init file but zsh/complete isn't (10828)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_tricky.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index f18babbbd..cb5770452 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -523,6 +523,9 @@ docomplete(int lst)
     if (undoing)
 	setlastline();
 
+    if (!module_loaded("zsh/complete"))
+	load_module("zsh/compctl");
+
     if (runhookdef(BEFORECOMPLETEHOOK, (void *) &lst))
 	return 0;