diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-10-11 00:50:01 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-10-11 00:50:01 +0000 |
commit | a07578ea6c80ff63501ab46cade436e23c546f9a (patch) | |
tree | fe7f862868492f025c093fee25c89c60310e85b3 /usr.bin/mg/grep.c | |
parent | b640eddcf06cae34b4ddbf20e6eff43644ccf6ff (diff) |
Enable the 'next-error' (C-x `) keybinding by default.
Niklas, this one is for you.
ok deraadt@, cloder@
Diffstat (limited to 'usr.bin/mg/grep.c')
-rw-r--r-- | usr.bin/mg/grep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/grep.c b/usr.bin/mg/grep.c index 39e543cc286..461b9b4024f 100644 --- a/usr.bin/mg/grep.c +++ b/usr.bin/mg/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.16 2005/08/09 00:53:48 kjell Exp $ */ +/* $OpenBSD: grep.c,v 1.17 2005/10/11 00:50:00 kjell Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved. * @@ -30,7 +30,7 @@ #include <ctype.h> static int compile_goto_error(int, int); -static int next_error(int, int); +int next_error(int, int); static int grep(int, int); static int compile(int, int); static int gid(int, int); @@ -281,7 +281,7 @@ fail: return (FALSE); } -static int +int next_error(int f, int n) { if (compile_win == NULL || compile_buffer == NULL) { |