πŸ› Bug Report: Cursor Appears in Wrong Position But Inserts Text at Correct Position

Issue
When I click at the end of a line, the cursor visually appears somewhere in the middle of the line instead of at the actual end. However, when I start typing, the characters are inserted at the correct (actual) end of the line, not where the cursor is shown. This creates a confusing experience and makes editing difficult.

Steps to Reproduce

  1. Open any file in VS Code (tested with .js and .txt files).
  2. Click at the end of a long line of text.
  3. Observe that the cursor appears in the middle of the line.
  4. Type any character.
  5. The character appears at the actual end of the line, not where the cursor was shown.

Expected Behavior
The cursor should appear exactly where the next character will be inserted β€” at the end of the line when clicking at the end.

Actual Behavior
The cursor appears mid-line, even though the inserted text still goes to the correct place.

Screenshot

System Info

  • Cursor Version: Last
  • OS: Windows 11
  • Architecture: x64

Troubleshooting Tried

I DONT know what to do, is is the first time (I do not change any thing or install any new extensions)

Notes

  • This happens consistently
  • It may be related to high DPI rendering or a custom font

Hey, as you mentioned, this might be related to the font or custom settings. Try changing the font to any available one. Also, open your settings.json file, delete everything from it (don’t forget to save a backup), and see if any of this resolves your issue. Reinstalling should also solve 99% of problems.