mirror of
https://github.com/zsh-users/zsh
synced 2024-09-29 04:35:22 +00:00
Prevent double precmd during "fc -e -"
This commit is contained in:
parent
4b9c21e580
commit
92d5a511be
|
@ -1,3 +1,8 @@
|
||||||
|
2005-06-13 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 21328: Src/init.c: in loop(), avoid preprompt() when not looping at
|
||||||
|
the top level (prevents double precmd call during "fc -e -").
|
||||||
|
|
||||||
2005-06-11 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
2005-06-11 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
||||||
|
|
||||||
* 21316 (modified): Completion/Unix/Command/_less,
|
* 21316 (modified): Completion/Unix/Command/_less,
|
||||||
|
|
|
@ -112,7 +112,7 @@ loop(int toplevel, int justonce)
|
||||||
hbegin(1); /* init history mech */
|
hbegin(1); /* init history mech */
|
||||||
if (isset(SHINSTDIN)) {
|
if (isset(SHINSTDIN)) {
|
||||||
setblock_stdin();
|
setblock_stdin();
|
||||||
if (interact) {
|
if (interact && toplevel) {
|
||||||
int hstop = stophist;
|
int hstop = stophist;
|
||||||
stophist = 3;
|
stophist = 3;
|
||||||
preprompt();
|
preprompt();
|
||||||
|
|
Loading…
Reference in a new issue