jeffreytse / zsh-vi-mode

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

NEX read engine throws error when a '-' follows the first character of escape bindkey #220

Closed matt-simons closed 11 months ago

matt-simons commented 1 year ago

General information

Please report the following information as possible as you can:

Basic examination

Problem description

When using the default readkey engine, nex, it's not possible to type 'k-' in insert mode when ZVM_VI_INSERT_ESCAPE_BINDKEY=kk is set. Switching to ZLE read engine fixes it ZVM_READKEY_ENGINE=$ZVM_READKEY_ENGINE_ZLE. Not sure whether this is the right place for this issue to be raised.

Reproduction steps

  1. set ZVM_VI_INSERT_ESCAPE_BINDKEY=kk
  2. type 'k-' while in insert mode
  3. error message is printed:
    ❯ k
    zvm_readkeys_handler:zle:38: not enough arguments for -U

Expected behavior

❯ k-
jeffreytse commented 1 year ago

Hi @matt-simons,

Thanks for your kindly reporting on the issue, and sorry for the late reply as I'm quite busy recently. Now this issue is fixed, please update to the latest version and try again. Welcome to star this project for further updates in the future. : )

Thanks & Regards

matt-simons commented 11 months ago

Thank you!