Brace matching fails when matching brace is nested in an outline

Steps to reproduce

  • This issue appears to be related to the VIM editing mode (which must be enabled)
  • Insert an opening curly brace as a bullet point
  • Hit return to open a new bullet point
  • Type a closing curly brace }
  • Notice how using the % key moves the focus back and forth between the matching braces
  • Now shift the closing bullet with the closing brace in one indentation level
  • Notice how the % key no longer moves between matching braces

This also occurs without using bullet points, so long as the second line with the matching brace is indented by at least one tab stop (either using a tab or by the equivalent number of spaces with ‘replace tabs by spaces’ is enabled).

Did you follow the troubleshooting guide? [Y/N]

Yes - sandbox wouldn’t work because it requires VIM mode editing. I did disable all CSS snippets with default theme and restart with clean instance of Obsidian.

Expected result

I expect brace matching to work regardless of relative nesting of lines.

Actual result

Typing % no longer moves between braces.

Environment

SYSTEM INFO:
Obsidian version: v1.8.9
Installer version: v1.6.7
Operating system: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6031 24.3.0
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information