Left-clicking the end of a line in Normal mode switches to Visual mode

Open
#9,887 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, vscode
Domain
devtools

Research direction

Start by reproducing the issue in VSCode with VSCodeVim 1.32.4, following the listed Normal-mode clicks and checking the behavior on Linux Mint or Windows 11. Trace the extension's handling of left-clicks at line ends and verify that repeated clicks only move the cursor without entering Visual mode.

Written by the indexing model from the issue text.

Description

Describe the bug
When left-clicking the end of a line in Normal mode, the editor sometimes switches to Visual mode unexpectedly.

To Reproduce

  1. Open any file and confirm you are in Normal mode.
  2. Left-click the end of a line.
  3. Move to another line and left-click the end of that line as well.
  4. Visual mode is activated unexpectedly.

Expected behavior
A left-click in Normal mode should only move the cursor.
This action should not cause the editor to enter Visual mode.

Environment (please complete the following information):

  • Extension (VsCodeVim) version:1.32.4
  • VSCode version:1.107.1
  • OS:Linux Mint 22.2 Cinnamon
  • (Same behavior also confirmed on Windows 11)

Additional context
A reproduction video is attached below.

https://github.com/user-attachments/assets/b2f143a2-4b6f-4921-b873-8c43b6cf38ad

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VSCodeVim/Vim

All issues in VSCodeVim/Vim

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.