diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2005-06-13 14:59:33 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-06-13 14:59:33 +0000 |
commit | 92d5a511bebd59e6e7035ee09a36141d8a35553e (patch) | |
tree | 138f1c0ad750ce34482051fe8cd1c8eb37b9ff8c /Src | |
parent | 4b9c21e5808e1ceb421ebd6f0d38e6fd94265116 (diff) | |
download | zsh-92d5a511bebd59e6e7035ee09a36141d8a35553e.tar.gz zsh-92d5a511bebd59e6e7035ee09a36141d8a35553e.tar.xz zsh-92d5a511bebd59e6e7035ee09a36141d8a35553e.zip |
Prevent double precmd during "fc -e -"
Diffstat (limited to 'Src')
-rw-r--r-- | Src/init.c | 2 |
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(); |