summaryrefslogtreecommitdiffstats
path: root/bin/sh/input.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-10-01 08:43:58 +0000
committerobrien <obrien@FreeBSD.org>2001-10-01 08:43:58 +0000
commitd9494059c0831aec86c9b2ccc7c0dbb40f70615f (patch)
tree9059e56ae23cbabd5e6903995dcb45dc73d47b83 /bin/sh/input.c
parent90300f853673b3879ab4d6a60683ff69b564c58b (diff)
downloadFreeBSD-src-d9494059c0831aec86c9b2ccc7c0dbb40f70615f.zip
FreeBSD-src-d9494059c0831aec86c9b2ccc7c0dbb40f70615f.tar.gz
*** empty log message ***
Diffstat (limited to 'bin/sh/input.c')
-rw-r--r--bin/sh/input.c4
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
OpenPOWER on IntegriCloud