Vim Cursor Offset Bug after a Math Preview

Steps to reproduce

  1. Enable Vim Mode
  2. Create a New Note
  3. Put the following example markdown snippet into the note:
- $$f(0)=0$$ bar
  1. Enter normal mode, and scroll around past the math block with the L key.

Did you follow the troubleshooting guide? Y

Expected result

The cursor should be at the correct position horizontally

Actual result

The cursor has some sort of offset applied to it.

Environment

SYSTEM INFO:
	Obsidian version: v1.6.7
	Installer version: v1.6.7
	Operating system: #1-NixOS SMP PREEMPT_DYNAMIC Mon Aug 19 04:04:32 UTC 2024 6.6.47
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on
----------

Additional information

  • Per the instructions on Linux bugs, I tested it on KDE Plasma with the AppImage. I have no way at the moment to test this on Windows or Mac.