summaryrefslogtreecommitdiff
path: root/usr.bin/mg/search.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-05-27 07:22:53 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-05-27 07:22:53 +0000
commitdf6a861bf797720705113c964e9cc4cf188fae81 (patch)
tree451aeb500051e6343f5a579ca5f8d2303f9f551a /usr.bin/mg/search.c
parent9de9e2db1455f1870d65ba5837f6e7935f002ab7 (diff)
Fix dumb bug in initial prompt for search-forward
OK jason, kjell
Diffstat (limited to 'usr.bin/mg/search.c')
-rw-r--r--usr.bin/mg/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/search.c b/usr.bin/mg/search.c
index af7fde28b4f..b15f5b53b2c 100644
--- a/usr.bin/mg/search.c
+++ b/usr.bin/mg/search.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: search.c,v 1.15 2005/05/27 05:55:12 cloder Exp $ */
+/* $OpenBSD: search.c,v 1.16 2005/05/27 07:22:52 cloder Exp $ */
/*
* Search commands.
@@ -695,7 +695,7 @@ readpattern(char *prompt)
char tpat[NPAT], *rep;
int retval;
- if (tpat[0] == '\0')
+ if (pat[0] == '\0')
rep = ereply("%s: ", tpat, NPAT, prompt);
else
rep = ereply("%s: (default %s) ", tpat, NPAT, prompt, pat);