Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Vim mode + contenteditable doesn't show any caret if content is empty #6393

Closed
thien-do opened this issue Aug 21, 2020 · 2 comments
Closed
Labels

Comments

@thien-do
Copy link

Reproduce: go to https://codemirror.net/demo/vim.html and delete all content
Expectation: the fat caret is still shown at the first character position
Actual: no caret is shown

Note:

@ppasupat
Copy link
Contributor

Possibly related: #6312

When inputStyle is "contenteditable", the vim keymap displays the normal mode cursor (fat cursor) by using doc.markText to mark the current character. An empty line does not have any character, so the mark does not show up.

@marijnh
Copy link
Member

marijnh commented Jul 19, 2022

The vim code is now being maintained at https://github.com/replit/codemirror-vim/ . If this is still important, check whether there is an issue open for it there.

@marijnh marijnh closed this as completed Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants