diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-06-05 05:15:57 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-06-05 05:15:57 +0000 |
commit | 36ed4d5f6dbdc5df1ebd45e4a0afa1fa45dcd582 (patch) | |
tree | 8af3c32bbfbaeef328577d2c6d87975fcf83c17b /usr.bin/mg/search.c | |
parent | 9116a42a5d477548adf866746d602e8c9904aded (diff) |
if functions permits null reply from minibuffer, use eread (with
EFNUL), not ereply.
ok cloder
Diffstat (limited to 'usr.bin/mg/search.c')
-rw-r--r-- | usr.bin/mg/search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mg/search.c b/usr.bin/mg/search.c index a6d88e4206d..70c31df5e85 100644 --- a/usr.bin/mg/search.c +++ b/usr.bin/mg/search.c @@ -1,4 +1,4 @@ -/* $OpenBSD: search.c,v 1.18 2005/06/03 15:16:22 cloder Exp $ */ +/* $OpenBSD: search.c,v 1.19 2005/06/05 05:15:56 kjell Exp $ */ /* * Search commands. @@ -775,7 +775,8 @@ readpattern(char *prompt) if (pat[0] == '\0') rep = ereply("%s: ", tpat, NPAT, prompt); else - rep = ereply("%s: (default %s) ", tpat, NPAT, prompt, pat); + rep = eread("%s: (default %s) ", tpat, NPAT, + EFNUL | EFNEW | EFCR, prompt, pat); /* specified */ if (rep == NULL) { |