diff options
author | Balint Gyapjas <balint@gyapjas.de> | 2018-08-29 21:00:35 +0200 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2018-08-29 12:00:35 -0700 |
commit | 285b540167a665bbe45da780f3fb35da2d4aea60 (patch) | |
tree | 34bafe482e2bf5096ffd1d5af5517e821b6700b1 /plugins | |
parent | 3cd8eaf9bb1382ff4f35e614904a4f16553e0dcb (diff) | |
download | zsh-285b540167a665bbe45da780f3fb35da2d4aea60.tar.gz zsh-285b540167a665bbe45da780f3fb35da2d4aea60.tar.bz2 zsh-285b540167a665bbe45da780f3fb35da2d4aea60.zip |
vi-mode show indicator on zle-line-init and SIGWINCH (#6449)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/vi-mode/vi-mode.plugin.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index 82a2f3040..a1889d451 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -4,9 +4,15 @@ 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 reset-prompt } zle -N zle-keymap-select |