Skip to content

[BUG] Visual mode highlight lingers after leaving visual mode #329

@jeffreytse

Description

@jeffreytse

General information

  • Terminal program: tmux 3.5a (tmux-256color)
  • Operating system: macOS 15.6.1 (24G90)
  • ZSH framework: starship 1.22.1, zinit v3.13.1-11-gd05a5301 (darwin24.0_arm64)
  • ZSH version: zsh 5.9 (arm64-apple-darwin24.0)
  • ZVM version: zsh-vi-mode 0.12.0 (c3ea272, 2025-09-23 09:58:19 +0800)

Basic examination

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • I have tested with another terminal program

Problem description

I'm on version 0.12.0. I've noticed cases where the visual mode highlight lingers after leaving visual mode.

Reproduction steps

  1. Type anything.
  2. Type v, then h some times to select some characters.
  3. Type either A or I.
zvm-317-lingering-visual-highlight.mp4

Expected behavior

Actual behavior: Insert mode is entered, the cursor is placed not where it should as per Vim and the visual highlight remains.
Expected behavior: Insert mode is entered, the cursor is placed where it should as per Vim and the visual highlight is gone.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingverifiedThis issue was already verified

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions