Seems to skip over the next result? (Only when going to next result, not back result)
mattpass opened this issue · 1 comments
mattpass commented
Describe the bug
Perform a find & replace on next result and it will skip over every other result. It appears to work fine when going to previous result, just not next result.
To Reproduce
Steps to reproduce the behavior:
- Open a doc with lots of
xyz
text - Find
xyz
and select replace withabc
text - Click next result link
>>
and it will replace, but every other one, seems to skip - The the prev result link
<<
and it will replace without skipping
Expected behavior
Not to skip results when replacing.
mattpass commented
Fixed, was incrementing array index as well as replacing so moving on twice (deletion + move) not just deletion.