jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
3.31k stars 113 forks source link

A character after the cursor gets deleted on return (JediTerm) #283

Open zzJinux opened 5 months ago

zzJinux commented 5 months ago

General information

Basic examination

Problem description

The only plugins enabled are zsh-vi-mode and powerline10k.

https://github.com/jeffreytse/zsh-vi-mode/assets/6695226/40512ca4-eaa5-480d-bcab-70ef4922daa8

The glitch cannot be captured by asciinema recording.

Reproduction steps

  1. Open a JediTerm window (or the one integrated into JetBrains IDEs)
  2. Type anything to the prompt and move the cursor between characters.
  3. Hit the return
  4. The character after the cursor disappears or is replaced with a space (0x20).

In other terminals like iTerm2, it works as intended.

The native zsh VI binding without zsh-vi-mode has no issue.

Expected behavior

Characters are intact.

zzJinux commented 5 months ago

More observations

  1. What's appended to the history is not corrupted.
  2. In the normal mode, a character at the block-shaped cursor gets deleted in the POV of the terminal buffer.