Search&Replace doesnt hihglight next result after replace

When I click on ‘next’ during Find&replace, the next search result is always highlighted.

When I click on ‘replace’ during Find&Replace, the current occurrence is replaced, but the next search result is not highlighted.

In this case you have to click ‘previous’ and then ‘next’ to see the next occurrence.

Steps to reproduce

  1. Create a note with text which contains ‘foo’
  2. Start Search&Replace ‘foo’ with ‘bar’
  3. Click ‘replace’
  4. Look for the next occurance of ‘foo’ and it’s not highlighted

Expected result

Highlight next search result after click ‘replace’ for the previous occurrence.

Actual result

Doesn’t highlight the next occurrence after click ‘replace’

Environment

  • Operating system: macOS Big Sur 11.x
  • Obsidian version: v0.12.1 (installer: v0.11.5)

Additional information

you are supposed to search before posting

A post was merged into an existing topic: Replace button moves to the next instance but doesn’t highlight it