mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-04 06:14:50 +01:00
30786: do not enter interactive history editing or command execution if
"fc" is called from a ZLE widget.
This commit is contained in:
parent
64e925bd65
commit
cba5449c3d
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-11-08 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 30786: Src/builtin.c: do not enter interactive history editing
|
||||
or command execution if "fc" is called from a ZLE widget.
|
||||
|
||||
2012-11-08 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 30783: Src/lex.c: we don't want leading "="'s to be active when
|
||||
|
@ -311,5 +316,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5755 $
|
||||
* $Revision: 1.5756 $
|
||||
*****************************************************
|
||||
|
|
|
@ -1414,6 +1414,12 @@ bin_fc(char *nam, char **argv, Options ops, int func)
|
|||
unqueue_signals();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (zleactive) {
|
||||
zwarnnam(nam, "no interactive history within ZLE");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* put foo=bar type arguments into the substitution list */
|
||||
while (*argv && equalsplit(*argv, &s)) {
|
||||
Asgment a = (Asgment) zhalloc(sizeof *a);
|
||||
|
|
Loading…
Reference in a new issue