jeffreytse / zsh-vi-mode

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

Unexpected behavior of `[cdy]<esc>` #215

Closed jeffreytse closed 1 year ago

jeffreytse commented 1 year ago

General information

Please report the following information as possible as you can:

Basic examination

Problem description

The <esc> can not escape the operator pending mode and ate one character.

To illustrate, the terminal looks like this:

zsh-vi-mode on  master [!?]
❯ la

Then, I hit c<ESC> and my terminal looks like this:

zsh-vi-mode on  master [!?]
❯ a

Reproduction steps

  1. Either open a new terminal or just hit to get a fresh prompt.
  2. Type c<ESC> or d<ESC> etc.

Expected behavior

Nothing should be changed if we escape the operator pending mode.