summaryrefslogtreecommitdiff
path: root/plugins/vi-mode
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vi-mode')
-rw-r--r--plugins/vi-mode/vi-mode.plugin.zsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index 82a2f3040..6cadd166a 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -4,9 +4,14 @@ function zle-keymap-select() {
zle -R
}
+# Ensures that MODE_INDITCATOR is displayed on terminal start up.
+function zle-line-init() {
+ zle reset-prompt
+}
+
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
- zle && zle -R
+ zle && { zle -R; zle reset-prompt }
}
zle -N zle-keymap-select