zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

Latest commit causes new sessions to start in normal mode

Open VeryDampTowel opened this issue 1 year ago • 1 comments

General information

Basic examination

  • [x] I have read through the README page
  • [x] I have the latest version of zsh-vi-mode
  • [x] I have tested with another terminal program ==> iTerm + Kitty

Problem description

The latest commit (c8ca1a1) breaks the standard functionality. Normally, a new shell session starts in insert mode, but the latest change causes it to start in normal mode.

Reproduction steps

  1. Pull latest version
  2. Open new shell session with zsh-vi-mode running

Expected behavior

Shell session should be in insert mode.

Changing line 3604 to the following will correct the issue.

  case $ZVM_LINE_INIT_MODE in
     $ZVM_MODE_INSERT) ZVM_MODE=$ZVM_MODE_NORMAL;;
     *) ZVM_MODE=$ZVM_MODE_INSERT;;
   esac

VeryDampTowel avatar Sep 27 '23 02:09 VeryDampTowel

Hi @parispjones

This issue has been addressed and settled now. : )

Thanks & Regards

jeffreytse avatar Sep 28 '23 06:09 jeffreytse