Fixed multi-line search in TextDocument::find.

This commit is contained in:
Martín Lucas Golini
2022-04-12 11:12:05 -03:00
parent 1f59395f7f
commit a247cc4852

View File

@@ -1622,6 +1622,8 @@ TextRange TextDocument::find( String text, TextPosition from, const bool& caseSe
if ( foundRange.end().column() == (Int64)mLines[foundRange.end().line()].size() )
foundRange.setEnd( positionOffset( foundRange.end(), 1 ) );
return foundRange;
} else {
return find( text, range.end(), caseSensitive, wholeWord, type, restrictRange );
}
}
}