Skip to content

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

@sho16jp

Description

@sho16jp

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.

click_lineend_visualmode.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions