Repository navigation
fix(example): keep the find count right and reset the bar on file open - #35
Conversation
…tches Replacing a case-insensitive "import" with "IMPORT" showed "2 of 3" while 4 matches were painted, since the bar subtracted one from the count after each replace. Replace all showed "no results" over the same painted matches. The bar now reads the selected match and the total from the editor after a replace, and the count again after a replace all.
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
the example's find bar subtracted one from the count after each replace. when the replacement still matches, like a case-insensitive "import" replaced with "IMPORT", it showed "2 of 3" while 4 matches were painted. replace all showed "no results" over the same painted matches. the bar now asks the editor for the selected match and the total after a replace, and for the count again after a replace all.
on Android and iOS, opening another file kept the find bar with the old query and count while the new editor had no search. the bar is keyed like the editor now, so it remounts with it, same as the web example.
Summary by CodeRabbit