about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-06-13 14:59:33 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-06-13 14:59:33 +0000
commit92d5a511bebd59e6e7035ee09a36141d8a35553e (patch)
tree138f1c0ad750ce34482051fe8cd1c8eb37b9ff8c /Src/init.c
parent4b9c21e5808e1ceb421ebd6f0d38e6fd94265116 (diff)
downloadzsh-92d5a511bebd59e6e7035ee09a36141d8a35553e.tar.gz
zsh-92d5a511bebd59e6e7035ee09a36141d8a35553e.tar.xz
zsh-92d5a511bebd59e6e7035ee09a36141d8a35553e.zip
Prevent double precmd during "fc -e -"
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c2
1 files changed, 1 insertions, 1 deletions
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();