diff options
author | 2005-05-27 07:22:52 +0000 | |
---|---|---|
committer | 2005-05-27 07:22:52 +0000 | |
commit | abfc6f43748a47c1571e06c29112b776424b08bb (patch) | |
tree | 61c0c602af0df3bbddc2cea4b69a1217347e3514 | |
parent | Allow us to clear the RTM_JUMBO flag as well as set it. (diff) | |
download | wireguard-openbsd-abfc6f43748a47c1571e06c29112b776424b08bb.tar.xz wireguard-openbsd-abfc6f43748a47c1571e06c29112b776424b08bb.zip |
Fix dumb bug in initial prompt for search-forward
OK jason, kjell
-rw-r--r-- | usr.bin/mg/search.c | 4 |
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); |