mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 22:34:54 +02:00
Fix a hanging issue on regexp
The hanging issue is introduced by a52738c1dd
.
Close #16371
This commit is contained in:
parent
df74c19269
commit
f59777b0b3
@ -437,7 +437,7 @@ Sci::Position BoostRegexSearch::SearchParameters::nextCharacter(Sci::Position po
|
||||
if (_skip_windows_line_end_as_one_character && _document->CharAt(position) == '\r' && _document->CharAt(position+1) == '\n')
|
||||
return position + 2;
|
||||
else
|
||||
return _document->NextPosition(position, 1);
|
||||
return std::max(_document->NextPosition(position, 1), position + 1);
|
||||
}
|
||||
|
||||
bool BoostRegexSearch::SearchParameters::isLineStart(Sci::Position position) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user