diff options
Diffstat (limited to 'bin/sh/input.c')
-rw-r--r-- | bin/sh/input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sh/input.c b/bin/sh/input.c index d75dfa4..4532b26 100644 --- a/bin/sh/input.c +++ b/bin/sh/input.c @@ -292,8 +292,10 @@ check: #ifndef NO_HISTORY if (parsefile->fd == 0 && hist && something) { + HistEvent he; INTOFF; - history(hist, whichprompt == 1 ? H_ENTER : H_ADD, parsenextc); + history(hist, &he, whichprompt == 1 ? H_ENTER : H_ADD, + parsenextc); INTON; } #endif |