Merge pull request #40 from tom93/fix-search-leading-spaces

Fix search pos on file with leading whitespace
This commit is contained in:
Naveen Singh authored and GitHub committed 2024-03-13 18:29:49 +05:30
commit d78f7cb507
1 file changed
+1 -1
@@ -316,7 +316,7 @@ class ReadTextActivity : SimpleActivity() {
binding.readTextView.text?.clearBackgroundSpans()
if (text.isNotBlank() && text.length > 1) {
searchMatches = binding.readTextView.value.searchMatches(text)
searchMatches = binding.readTextView.text.toString().searchMatches(text)
binding.readTextView.highlightText(text, getProperPrimaryColor())
}