Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

VIM mode - large green cursor does not display in contenteditable mode #3552

@paulmarrington

Description

@paulmarrington
ContentEditableInput.prepareSelection(this.cm, false)

while

TextareaInput.prepareSelection(cm);

prepareSelection has a line

  if (primary === false && i == doc.sel.primIndex) continue;

which causes to loop to be skipped for ContentEditableInput. In vim mode this means that html looks like

<div class="CodeMirror-cursors"></div>

instead of

<div class="CodeMirror-cursors" style="visibility: hidden;"><div class="CodeMirror-cursor" style="left: 129px; top: 95px; height: 19px;">&nbsp;</div></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions