diff options
author | Greg Berenfield <gberenfield@berenfield.com> | 2013-01-02 19:14:57 -0500 |
---|---|---|
committer | Greg Berenfield <gberenfield@berenfield.com> | 2013-01-02 19:14:57 -0500 |
commit | 93c90a6bf5817d09e978bd720eaa7f9be971a1c6 (patch) | |
tree | 7b398499d45dc02b567c98a1a1ad1d0b53ed38f9 /plugins/vi-mode | |
parent | 003dd8f4b68062b7fd5e4e1725264189ee56e28a (diff) | |
download | zsh-93c90a6bf5817d09e978bd720eaa7f9be971a1c6.tar.gz zsh-93c90a6bf5817d09e978bd720eaa7f9be971a1c6.tar.bz2 zsh-93c90a6bf5817d09e978bd720eaa7f9be971a1c6.zip |
Fix the fix for Issue #1479
Diffstat (limited to 'plugins/vi-mode')
-rw-r--r-- | plugins/vi-mode/vi-mode.plugin.zsh | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index 27fb47c97..a06100472 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -3,18 +3,13 @@ function zle-keymap-select zle-line-init zle-line-finish { # The terminal must be in application mode when ZLE is active for $terminfo # values to be valid. - if (( $+terminfo[smkx] && $+terminfo[rmkx] )); then - case "$0" in - (zle-line-init) - # Enable terminal application mode. - printf '%s' ${terminfo[smkx]} - ;; - (zle-line-finish) - # Disable terminal application mode. - printf '%s' ${terminfo[rmkx]} - ;; - esac + if (( ${+terminfo[smkx]} )); then + printf '%s' ${terminfo[smkx]} fi + if (( ${+terminfo[rmkx]} )); then + printf '%s' ${terminfo[rmkx]} + fi + zle reset-prompt zle -R } |