[BUG_FIXED] (Author: Dave Brotherstone) Fix find "\r\n" in RegExpr mode.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@990 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2012-12-02 19:29:23 +00:00
parent 27efa1548c
commit bcb502808e

View File

@ -163,14 +163,6 @@ long BoostRegexSearch::FindText(Document* doc, int minPos, int maxPos, const cha
// Work out the range of lines we're searching across, moving beyond an empty end-of-line
int lineRangeStart = doc->LineFromPosition(startPos);
int lineRangeEnd = doc->LineFromPosition(endPos);
if ((increment == 1) &&
(startPos >= doc->LineEnd(lineRangeStart)) &&
(lineRangeStart < lineRangeEnd))
{
// the start position is at end of line or between line end characters.
lineRangeStart++;
startPos = doc->LineStart(lineRangeStart);
}
regex_constants::match_flag_type flags(regex_constants::match_default);