summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/zle_main.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ef065fcb6..acdbd9b18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-26  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 11566: Src/Zle/zle_main.c: disable vared if zle is not enabled
+	
 2000-05-25  Oliver Kiddle  <opk@u.genie.co.uk>
 
 	* 11579: Completion/Builtins/_compdef, Completion/Builtins/_zpty:
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;