1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 05:24:23 +01:00

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

@ -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>
* 21316 (modified): Completion/Unix/Command/_less,

@ -112,7 +112,7 @@ loop(int toplevel, int justonce)
hbegin(1); /* init history mech */
if (isset(SHINSTDIN)) {
setblock_stdin();
if (interact) {
if (interact && toplevel) {
int hstop = stophist;
stophist = 3;
preprompt();