1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-27 06:11:06 +02:00

disable vared if zle is not enabled (11566)

This commit is contained in:
Sven Wischnowsky 2000-05-26 07:03:43 +00:00
parent b36b493313
commit 972fe43f51
2 changed files with 8 additions and 0 deletions

View file

@ -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:

View file

@ -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;