[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:
parent
27efa1548c
commit
bcb502808e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user