question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cursor invisible on empty lines in chrome 62

See original GitHub issue

Cursor is visible in lines with some text, but invisible for blank lines. This fixes it:

.CodeMirror-cursor {
	width: 1px !important;
}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ferraocommented, Oct 30, 2019

@kay999 your workaround breaks fat cursor mode, use this instead:

:not(.cm-fat-cursor) .CodeMirror-cursor {
    width: 1px !important;
}
0reactions
EricRabilcommented, Dec 4, 2020

My solution was to give the cursor a margin-left to shove it into view, because it is only ever one pixel off (in my environment, at least).

.CodeMirror-cursor {
  margin-left: 1px;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

cursor invisible on empty lines in chrome 62 #5056 - GitHub
Cursor is visible in lines with some text, but invisible for blank lines. This fixes it: .CodeMirror-cursor { width: 1px !important; }
Read more >
Cursor or Mouse Pointer Disappear in Chrome Browser ...
The chrome cursor disappears from the screen while reading or browsing; however, the cursor reappears when we scroll through the web page.
Read more >
There is a text cursor bug in my chrome that causes the ...
There is an annoying bug in my chrome that causes a blinking cursor also known as "the text cursor," or "the insertion point"...
Read more >
57901 - Cursor inconsistencies and other improper rendering ...
The cursor does not reposition. There is "invisible" code that generates errors when you run the program. The code does not appear in...
Read more >
What's New In DevTools (Chrome 102)
Developer advocate working on Chrome DevTools at Google. ... logic in the Sources panel that caused multiple blank lines when editing CSS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found