A very big bug about "Cursor"


‌‌A very serious “cursor” issue, the content I select will shift to the left, making it impossible to normally modify any code, and impossible to normally select the content I want to modify for input.

how to deal it?

Hi @kankanai ,

I can’t quite understand the desired and undesired behaviour you are describing.

Can you provide a small JavaScript code sample and some dot point steps to reproduce?

I will then try it on my computer and see if I get the same behaviour.

‌‌From the screenshot, it can be seen that I chose “runBefore”, but the cursor shifted to the left to the position of the letter “s”, causing me to be unable to select the desired position, such as “createAxios” and “then” below, and also affecting keyboard input.
I tried again and found that this problem will reappear after opening two windows, for example, opening a python project, creating a new window, and then opening a vue project.

Hi @kankanai ,

Can you provide an actual, simple, code sample so I can paste it in my Cursor editor and see if I can reproduce the behavior?

I’ve re-read your post a few times, but I still can’t quite understand the behavior you are describing.

‌‌‌Alright, I’ll provide you with an accurate reproduction video.

Hi @kankanai ,

I’m sorry to say I haven’t seen anything like that before.

And have personally never experienced it.

My first thoughts are:

  • Is it a theme or extension issue?
  • Is it a VS Code setting that has been accidentally modified?

I tried googling things like:

  • vscode cursor offset left

  • vscode weird text selection on double click

  • vs code text selection not working properly offset to the left

And I even tried chatting with ChatGPT about it:

I am trying to help a person on Cursor (the fork of VS Code) forum.

They have shown a video where, when they double click on a word in the Editor, it does not select the word, rather it selects the first part of the word and the space before it.

Have you ever heard of this type of behaviour?

I couldn’t find any conclusive answers.

Only references to possible causes like:

  • editor.wordSeparators settings
  • extension conflicts
  • resetting the zoom level

Your video does a good job of demonstrating the issue, so hopefully someone else here might have seen the issue before and know the solution for it.

If I come across any solutions I will post back.

Oh, and can you please paste system information from:

Cursor > Help > About

1 Like

Thank you for your prompt response. I’ve found the issue, which is that the window.zoomLevel is set to 1.1. Here is the video feedback.

What’s strange is that I’ve tried other values (1, 1.2, 1.3, 1.5) and they all work fine, but only 1.1 causes this problem.

版本: 0.41.3
提交: 1.91.1
日期: 51c8aff7cb5a89f4a0e462fbacab938bdbfaf140
Electron: 2024-09-25T17:13:50.377Z
ElectronBuildId: 29.4.0
Chromium: undefined
Node.js: 122.0.6261.156
V8: 20.9.0
OS: 12.2.281.27-electron.0

1 Like

Oh that is fantastic, I am so glad you found a solution.

It must have been very annoying!

Thanks for sharing the solution with the community!