In vim mode, "o" and "O" fail to insert newlines in HTML-style comments

Steps to reproduce

Activate vim. Paste in the following snippet:

first. works ok

second. works ok <!-- comment -->

third. works ok
<!-- comment -->

fourth. `o` doesn't work, but `O` does <!-- 
comment -->

<!-- comment
--> fifth. `O` doesn't work, but `o` does

<!-- comment
--> sixth. neither `o` nor `O` work <!--
comment -->

Enter vim’s normal mode. For each line, try to use o and O.

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

Expected result

When pressing o, a new line should be created below the current line, the cursor should jump to the start of that line, and vim should enter insert mode.

Also, when pressing O, a new line should be created above the current line, the cursor should jump to the start of that line, and vim should enter insert mode.

Actual result

When pressing o on a line which ends partway through a multi-line HTML comment, the cursor jumps to the end of the current line without inserting a new line, and vim doesn’t enter insert mode.

When pressing O on a line which begins partway through a multi-line HTML comment, the cursor jumps to the end of the previous line without creating a new line, and vim doesn’t enter insert mode.

Environment

SYSTEM INFO:
Obsidian version: v1.3.5
Installer version: v1.3.5
Operating system: Windows 10 Home 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Does it happen with the latest version of Obsidian?

Does it happen in source mode?

Hi–sorry, I forgot about this topic for a long time.

I tried my test cases again with Obsidian v1.5.11’s sandbox vault. O now works as expected, but o is still buggy. This is true with Settings > Editor > Default editing mode set to both “Live Preview” and “Source mode”.