1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-11 20:31:11 +01:00

Disable vared only for interactive shells where ZLE has been explicitly

disabled, but also for any shell running in an emacs buffer.
This commit is contained in:
Bart Schaefer 2000-06-01 15:22:15 +00:00
parent b8e929748a
commit 15a6466044

View file

@ -743,7 +743,7 @@ bin_vared(char *name, char **args, char *ops, int func)
char *p1 = NULL, *p2 = NULL;
FILE *oshout = NULL;
if (unset(USEZLE)) {
if ((interact && unset(USEZLE)) || !strcmp(term, "emacs")) {
zwarnnam(name, "ZLE not enabled", NULL, 0);
return 1;
}