From e205dee960e5c32e5acfa130942e26ed498539fd Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 23 Mar 2000 03:54:48 +0000 Subject: zsh-workers/10168 --- Src/init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Src/init.c b/Src/init.c index e59ff16a5..9e75e4b00 100644 --- a/Src/init.c +++ b/Src/init.c @@ -106,12 +106,16 @@ loop(int toplevel, int justonce) for (;;) { freeheap(); errflag = 0; + hbegin(1); /* init history mech */ if (isset(SHINSTDIN)) { setblock_stdin(); - if (interact) + if (interact) { + int hstop = stophist; + stophist = 3; preprompt(); + stophist = hstop; + } } - hbegin(1); /* init history mech */ intr(); /* interrupts on */ lexinit(); /* initialize lexical state */ if (!(prog = parse_event())) { /* if we couldn't parse a list */ -- cgit 1.4.1