Prevent double precmd during "fc -e -"

This commit is contained in:
Bart Schaefer 2005-06-13 14:59:33 +00:00
parent 4b9c21e580
commit 92d5a511be
2 changed files with 6 additions and 1 deletions

View file

@ -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,

View file

@ -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();