When using vim mode on a canvas document, cursor does not show when it is in a code block in normal mode

Steps to reproduce

When using vim mode and normal input mode on a canvas document, create a code block. The cursor does not show when it is in a code block in normal input mode. The cursor does show if in insert mode.

Expected result

The cursor to show in all input modes.

Actual result

Cursor does not show in normal mode.

Environment

  • Operating system: Pop!_OS 22.04 LTS x86_64
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.9
    Installer version: v0.15.8
    Operating system: #202212290932~1671652965~22.04~452ea9d SMP PREEMPT_DYNAMIC Wed D 6.0.12-76060006-generic
    Login status: logged in
    Catalyst license: supporter
    Insider build toggle: on
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: Spectrum
    Snippets enabled: 0
    Restricted mode: off
    Plugins installed: 4
    Plugins enabled: 4
    1: Editor Syntax Highlight v0.1.3
    2: Advanced Tables v0.18.1
    3: Calendar v1.5.10
    4: Dataview v0.5.52

Additional information

I tested this in Sandbox mode with the same results.

Here is a demonstration of the behavior:

1 Like

I have this problem on my Linux machine too.

1 Like

I can reproduce on MacOS. Obsidian 1.1.19 (installer 1.1.19)

1 Like

Steps to reproduce

  1. Open the sandbox vault.
  2. Enable vim mode.
  3. Create a new canvas.
  4. Create a new card.
  5. Paste the following text into the card
```
foo
```
  1. Make sure to be in normal mode and place the block cursor in the code block. It will be invisible (seems to be behind it). If you enter insert mode the normal cursor renders fine.

Expected result

The block cursor is visible.

Actual result

The block cursor is not visible.

Environment

  • Operating system: macOS
  • Debug info:
SYSTEM INFO:
	Obsidian version: v1.1.8
	Installer version: v1.1.8
	Operating system: Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 22.2.0
	Login status: logged in
	Catalyst license: vip
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none
2 Likes