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

Disappearing Cursor #2223

Open
Open

Description

@cristophercutas

Current behavior

Cursor disappears when clicking at the end of the line.

Expected behavior

Cursor should always be visible during edit mode.

Steps to reproduce

  1. Edit a document
  2. Click at the end of the line (highly reproducible on the list below ##When)
  3. Observe.

When

  1. Clicking at the far end of the line, meaning pixels away from the character.
  2. Clicking at the far end of the line with the last character as space.
  3. Clicking at the of a Header

Environment

  • Version :Version 0.11.8 (0.11.8)
  • OS Version and name :
    macOS High Sierra 10.13.3 (17D47)
    MacBook Pro (Retina, 13-inch, Early 2015)

Activity

  1. abbasaleid-zz commented on Jul 30, 2018

    @abbasaleid-zz

    Same here. Could not understand why would this would happen? I would appreciate a fix for it as soon as possible. It's actually so annoying and confusing.

  2. IssueHuntBot commented on Jul 30, 2018

    @IssueHuntBot

    @BoostIO funded this issue with $30. Visit this issue on Issuehunt

  3. daiyam commented on Nov 10, 2018

    @daiyam
    Contributor

    @cristophercutas are you still having the issue? I can't reproduce it.

  4. cristophercutas commented on Nov 15, 2018

    @cristophercutas
    Author

    Apologies for the delayed response. Yes, I can still reproduce it. I am on version 0.11.10 (0.11.10).

    I tried it on another machine (same specs) and it was reproducible. I could not reproduce it on 100% zoom setting, but on 80% zoom setting the cursor disappears, although the scenario may vary. On machine 1 it only disappears on empty new lines, on machine 2 it only disappears at the end of a non-empty line.

    Hope this helps.

  5. willurd commented on Nov 24, 2018

    @willurd

    Digging around a little bit on this. It looks like this is an issue with CodeMirror. CodeMirror implements its own cursor, styled with a single border. When the app is zoomed to certain levels, the cursor disappears, but it's just a rounding error. If you set the border-width of .CodeMirror-cursor to 3px, it should be visible at all zoom levels.

    You can also see correct cursor render behavior by putting your cursor in the tags field and zooming in and out - you should be able to see the cursor at all zoom levels.

    Potential fixes for this include:

  6. added
    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.
    and removed
    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.
    on Jul 25, 2019
  7. shriram-svg commented on May 11, 2026

    @shriram-svg

    Opened #3793 with a small global CodeMirror cursor-width fix for the zoom-level disappearing cursor issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions