From de9af0062cc69945d90e40d3e0e8ca310f9346ad Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sat, 18 Sep 1999 20:04:34 +0000 Subject: zsh-workers/7929 --- Src/hist.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Src/hist.c') diff --git a/Src/hist.c b/Src/hist.c index a78c403f1..fcd5d877a 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1435,14 +1435,21 @@ convamps(char *out, char *in, int inlen) /**/ Histent -quietgethist(int ev) +quietgethistent(int ev, int nearmatch) { if (ev == curhist && (histactive & HA_ACTIVE)) { curline.text = chline; curline.nwords = chwordpos/2; curline.words = chwords; } - return gethistent(ev, GETHIST_EXACT); + return gethistent(ev, nearmatch); +} + +/**/ +Histent +quietgethist(int ev) +{ + return quietgethistent(ev, GETHIST_EXACT); } /**/ -- cgit 1.4.1