From 92d5a511bebd59e6e7035ee09a36141d8a35553e Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 13 Jun 2005 14:59:33 +0000 Subject: Prevent double precmd during "fc -e -" --- Src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/init.c') 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(); -- cgit 1.4.1