about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-06-01 15:22:15 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-06-01 15:22:15 +0000
commit15a64660444061c498b331ef1a27012f82cfcaa8 (patch)
tree053ccc547d56ae0961b29310595c0a8cf7a34ba1
parentb8e929748a856dbfdf51aae33119d59afc9d27f6 (diff)
downloadzsh-15a64660444061c498b331ef1a27012f82cfcaa8.tar.gz
zsh-15a64660444061c498b331ef1a27012f82cfcaa8.tar.xz
zsh-15a64660444061c498b331ef1a27012f82cfcaa8.zip
Disable vared only for interactive shells where ZLE has been explicitly
disabled, but also for any shell running in an emacs buffer.
-rw-r--r--Src/Zle/zle_main.c2
1 files changed, 1 insertions, 1 deletions
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;
     }