Added fix for grepping for POSIX style matches.

[SVN r22621]
This commit is contained in:
John Maddock
2004-04-07 11:04:06 +00:00
parent 300ca31723
commit dc90d07749

View File

@ -205,7 +205,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::find_imp()
else
{
// start again:
search_base = position = (*m_presult)[0].second;
search_base = position = m_result[0].second;
// If last match was null and match_not_null was not set then increment
// our start position, otherwise we go into an infinite loop:
if(((m_match_flags & match_not_null) == 0) && (m_presult->length() == 0))