diff options
author | Xin LI <delphij@FreeBSD.org> | 2011-05-09 18:30:23 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2011-05-09 18:30:23 +0000 |
commit | ed915d8294a373813108148f47b424e1152e4a5d (patch) | |
tree | 345f36f8a19a9fdb66be9a0a5676b2c0abc67bae /pattern.c | |
parent | f4cb5a505fa28e14d4b01e5c934bcf965a1822b6 (diff) |
Diffstat (limited to 'pattern.c')
-rw-r--r-- | pattern.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pattern.c b/pattern.c index f1fb3ef697e38..ca349b6c1928f 100644 --- a/pattern.c +++ b/pattern.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2009 Mark Nudelman + * Copyright (C) 1984-2011 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -254,8 +254,8 @@ match_pattern(pattern, tpattern, line, line_len, sp, ep, notbol, search_type) if (search_type & SRCH_NO_REGEX) matched = match(tpattern, strlen(tpattern), line, line_len, sp, ep); - else - { + else + { #if HAVE_POSIX_REGCOMP { regmatch_t rm; @@ -314,7 +314,7 @@ match_pattern(pattern, tpattern, line, line_len, sp, ep, notbol, search_type) #if NO_REGEX matched = match(tpattern, strlen(tpattern), line, line_len, sp, ep); #endif - } + } matched = (!(search_type & SRCH_NO_MATCH) && matched) || ((search_type & SRCH_NO_MATCH) && !matched); return (matched); |