about summary refs log tree commit diff
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
parentb36b493313a16ae92adc3bd988a2591645f469f6 (diff)
downloadzsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.tar.gz
zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.tar.xz
zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.zip
disable vared if zle is not enabled (11566)
-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;