Skip to content

Commit d78f7cb

Browse files
authored
Merge pull request #40 from tom93/fix-search-leading-spaces
Fix search pos on file with leading whitespace
2 parents 3c87b4a + 1babb14 commit d78f7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/filemanager/activities/ReadTextActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class ReadTextActivity : SimpleActivity() {
316316
binding.readTextView.text?.clearBackgroundSpans()
317317

318318
if (text.isNotBlank() && text.length > 1) {
319-
searchMatches = binding.readTextView.value.searchMatches(text)
319+
searchMatches = binding.readTextView.text.toString().searchMatches(text)
320320
binding.readTextView.highlightText(text, getProperPrimaryColor())
321321
}
322322

0 commit comments

Comments
 (0)