Fixes Haiku performance issues.

This commit is contained in:
Martín Lucas Golini
2024-10-20 04:09:20 -03:00
parent 2bb66d2e40
commit 66002c3db8
23 changed files with 135 additions and 69 deletions

View File

@@ -56,7 +56,8 @@ bool StatusBuildOutputController::searchFindAndAddStatusResult(
continue;
}
std::string subtxt = text.substr( matches[i].start, matches[i].end );
std::string subtxt =
text.substr( matches[i].start, matches[i].end - matches[i].start );
if ( pattern.config.patternOrder.message == i ) {
auto nl = subtxt.find_first_of( '\n' );
if ( nl == std::string::npos ) {