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:
parent
b8e929748a
commit
15a6466044
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue