From ed915d8294a373813108148f47b424e1152e4a5d Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 9 May 2011 18:30:23 +0000 Subject: Vendor import of less v443. --- pattern.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pattern.c') diff --git a/pattern.c b/pattern.c index f1fb3ef697e3..ca349b6c1928 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); -- cgit v1.3