mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
zsh-workers/10168
This commit is contained in:
parent
9117370f0d
commit
e205dee960
1 changed files with 6 additions and 2 deletions
|
@ -106,12 +106,16 @@ loop(int toplevel, int justonce)
|
||||||
for (;;) {
|
for (;;) {
|
||||||
freeheap();
|
freeheap();
|
||||||
errflag = 0;
|
errflag = 0;
|
||||||
|
hbegin(1); /* init history mech */
|
||||||
if (isset(SHINSTDIN)) {
|
if (isset(SHINSTDIN)) {
|
||||||
setblock_stdin();
|
setblock_stdin();
|
||||||
if (interact)
|
if (interact) {
|
||||||
|
int hstop = stophist;
|
||||||
|
stophist = 3;
|
||||||
preprompt();
|
preprompt();
|
||||||
|
stophist = hstop;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
hbegin(1); /* init history mech */
|
|
||||||
intr(); /* interrupts on */
|
intr(); /* interrupts on */
|
||||||
lexinit(); /* initialize lexical state */
|
lexinit(); /* initialize lexical state */
|
||||||
if (!(prog = parse_event())) { /* if we couldn't parse a list */
|
if (!(prog = parse_event())) { /* if we couldn't parse a list */
|
||||||
|
|
Loading…
Reference in a new issue