about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-26 07:03:43 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-26 07:03:43 +0000
commit972fe43f512346ef90d680be3d4dbb4bd5d773e5 (patch)
tree0ad69efde41a5530cff085e161187720734d3546 /Src
parentb36b493313a16ae92adc3bd988a2591645f469f6 (diff)
downloadzsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.tar.gz
zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.tar.xz
zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.zip
disable vared if zle is not enabled (11566)
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 0b5735332..a19f9b5db 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -740,6 +740,10 @@ bin_vared(char *name, char **args, char *ops, int func)
     char *p1 = NULL, *p2 = NULL;
     FILE *oshout = NULL;
 
+    if (unset(USEZLE)) {
+	zwarnnam(name, "ZLE not enabled", NULL, 0);
+	return 1;
+    }
     if (zleactive) {
 	zwarnnam(name, "ZLE cannot be used recursively (yet)", NULL, 0);
 	return 1;