diff --git a/ChangeLog b/ChangeLog index f70f4698f..eab0592cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-13 Bart Schaefer + + * 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 * 21316 (modified): Completion/Unix/Command/_less, diff --git a/Src/init.c b/Src/init.c index b9658af63..2dc1f8110 100644 --- a/Src/init.c +++ b/Src/init.c @@ -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();