285b540167a665bbe45da780f3fb35da2d4aea60

Author
Balint Gyapjas <balint@gyapjas.de>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

vi-mode show indicator on zle-line-init and SIGWINCH (#6449)

Diff

 1diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
 2index 82a2f30405e9d644ad231a6de65e754b22849920..a1889d4513a9043693381423c50a87674416d3c0 100644
 3--- a/plugins/vi-mode/vi-mode.plugin.zsh
 4+++ b/plugins/vi-mode/vi-mode.plugin.zsh
 5@@ -4,9 +4,15 @@ function zle-keymap-select() {
 6   zle -R
 7 }
 8 
 9+# Ensures that MODE_INDITCATOR is displayed on terminal start up.
10+function zle-line-init() {
11+  zle reset-prompt
12+}
13+
14 # Ensure that the prompt is redrawn when the terminal size changes.
15 TRAPWINCH() {
16   zle &&  zle -R
17+  zle reset-prompt
18 }
19 
20 zle -N zle-keymap-select