diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-26 07:03:43 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-26 07:03:43 +0000 |
commit | 972fe43f512346ef90d680be3d4dbb4bd5d773e5 (patch) | |
tree | 0ad69efde41a5530cff085e161187720734d3546 /Src/Zle | |
parent | b36b493313a16ae92adc3bd988a2591645f469f6 (diff) | |
download | zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.tar.gz zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.tar.xz zsh-972fe43f512346ef90d680be3d4dbb4bd5d773e5.zip |
disable vared if zle is not enabled (11566)
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_main.c | 4 |
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; |