From 15a64660444061c498b331ef1a27012f82cfcaa8 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 1 Jun 2000 15:22:15 +0000 Subject: Disable vared only for interactive shells where ZLE has been explicitly disabled, but also for any shell running in an emacs buffer. --- Src/Zle/zle_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/zle_main.c') diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 49b682c18..6c335c5e9 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -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; } -- cgit 1.4.1