Toggling from Edit to Preview to Edit by clicking forgets cursor position

Steps to reproduce

  1. Edit a file in edit mode
  2. Click the Preview button on the pane
  3. Click the Edit button on the pane

Expected result

Cursor is where I left it.

Actual result

Cursor has disappeared and I need to click in the window (and need to remember where I was).


  • Operating system: OSX 11.0.1
  • Obsidian version: 0.9.19

Additional information

This has been fixed for the keyboard shortcut already and works fine with keyboard only:


+1. This seems like it would be easy to fix

Yes, the bug is to fix it for clicking on the icon with the mouse.
I propose that button should work precisely like Command-E.