jeffreytse / zsh-vi-mode

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

Latest commit causes new sessions to start in normal mode #245

Open VeryDampTowel opened 9 months ago

VeryDampTowel commented 9 months ago

General information

Basic examination

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
jeffreytse commented 9 months ago

Hi @parispjones

This issue has been addressed and settled now. : )

Thanks & Regards