Cursor resets position when typing a space after colon in YAML property (Source Mode + Sync active)

Steps to reproduce

  1. Open any note in Source Mode

  2. Enable Obsidian Sync

  3. Add a property in the YAML frontmatter, e.g. mykey:

  4. Place the cursor directly after the colon

  5. Type a space ( ) to begin entering a value

Did you follow the troubleshooting guide? Y

Expected result

The cursor stays after the space, ready to type the value.

Actual result

The cursor either:

  • jumps back one position (before the space), or

  • resets to the beginning of the property line

This happens consistently when Obsidian Sync is active. With Sync disabled, the behavior does not occur.

Environment

text

Obsidian version: 1.12.7
Installer version: 1.7.5
Operating system: MacOS 26.5.1
Login status: logged in
Insider build: no
Community plugins: none (only Sync)

Additional context

The issue is reproducible only in Source Mode. In Live Preview, the behavior does not occur. The cursor reset seems to be triggered by Sync detecting a file change at the moment the space after the colon is typed, causing a re-read and re-render of the file, which resets the cursor position. This is related to the existing report: Editing property value resets cursor position when Obsidian loses focus, but the trigger here is Sync activity, not an actual focus change.