summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@arklinux.org>2006-08-18 21:38:03 +0000
committerBernhard Rosenkraenzer <bero@arklinux.org>2006-08-18 21:38:03 +0000
commit2aad2972a535cf6474a19bad3cb19b5c93e6fc58 (patch)
treef02f1bf1420e845d37c1d1f978ef8b664546f76c
parent9c6d15ad44408122ebb66bc55da11867dcf8f1e2 (diff)
downloadgrep-2aad2972a535cf6474a19bad3cb19b5c93e6fc58.tar.gz
Remove bogus warning
-rw-r--r--src/grep.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/grep.c b/src/grep.c
index e24dbfff..418e27f2 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -2148,12 +2148,6 @@ main (int argc, char **argv)
out_after = default_context;
if (out_before < 0)
out_before = default_context;
- if (only_matching && (out_after > 0 || out_before > 0))
- {
- error(0, 0, _("Any context line specification "
- "is ignored with -o/--only-matching."));
- out_after = out_before = 0;
- }
if (color_option)
{