Cursor Selection and Deletion Issues

Issue Summary: In the IDE, there is a frequent issue where text selection and cursor behavior do not work as expected. This results in incorrect text being selected or deleted, leading to difficulty in editing the code.

Steps to Reproduce:

  1. Select any portion of text using the mouse or keyboard.
  2. Observe that the selection does not align correctly with the intended text.
  3. Place the cursor at a specific position and attempt to delete a character.
  4. Notice that the wrong character is deleted or unexpected behavior occurs.

Observed Behavior:

  • The text selection does not highlight the expected characters accurately.
  • When deleting text, incorrect characters get removed instead of those adjacent to the cursor.
  • The issue persists across multiple files and sessions.
  • As seen in the attached image, the selection and cursor positioning do not correspond correctly to the visual representation.

Expected Behavior:

  • Text selection should precisely match the highlighted portion.
  • Deletion should remove characters at the correct cursor position without affecting unintended parts of the code.

Environment Details:

  • Font: JetBrains Mono
  • Font Size: 13
  • Versions
    Version: 0.46.11 (user setup)
    VSCode Version: 1.96.2
    Commit: ae378be9dc2f5f1a6a1a220c6e25f9f03c8d4e10
    Date: 2025-03-07T07:01:25.026Z
    Electron: 32.2.6
    Chromium: 128.0.6613.186
    Node.js: 20.18.1
    V8: 12.8.374.38-electron.0
    OS: Windows_NT x64 10.0.26100

Additional Notes:

  • This issue occurs frequently and impacts workflow efficiency.
  • It happens across different files, making text editing unreliable.

Video Link: Upload Files | Free File Upload and Transfer Up To 10 GB