Commit 1babb14
committed
Fix search pos on file with leading whitespace
The extension property EditText.value trims leading/trailing
whitespace, so using it to calculate the locations of the search
matches produces incorrect indices if the file has leading whitespace.
(This affects the cursor position when going to the next/prev match.
It does not affect the highlighting of matches.)1 parent d3c717d commit 1babb14
File tree
1 file changed
+1
-1
lines changed- app/src/main/kotlin/org/fossify/filemanager/activities
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments