93c90a6bf5817d09e978bd720eaa7f9be971a1c6
- Author
- Greg Berenfield <gberenfield@berenfield.com>
- Committer
- Greg Berenfield <gberenfield@berenfield.com>
- Date
Message
Fix the fix for Issue #1479
Diff
1diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
2index 27fb47c97b0868d344e9b1aa14358f807fb782bc..a06100472a9710b1bc112121239a2b169f898f88 100644
3--- a/plugins/vi-mode/vi-mode.plugin.zsh
4+++ b/plugins/vi-mode/vi-mode.plugin.zsh
5@@ -3,18 +3,13 @@
6 function zle-keymap-select zle-line-init zle-line-finish {
7 # The terminal must be in application mode when ZLE is active for $terminfo
8 # values to be valid.
9- if (( $+terminfo[smkx] && $+terminfo[rmkx] )); then
10- case "$0" in
11- (zle-line-init)
12- # Enable terminal application mode.
13- printf '%s' ${terminfo[smkx]}
14- ;;
15- (zle-line-finish)
16- # Disable terminal application mode.
17- printf '%s' ${terminfo[rmkx]}
18- ;;
19- esac
20+ if (( ${+terminfo[smkx]} )); then
21+ printf '%s' ${terminfo[smkx]}
22 fi
23+ if (( ${+terminfo[rmkx]} )); then
24+ printf '%s' ${terminfo[rmkx]}
25+ fi
26+
27 zle reset-prompt
28 zle -R
29 }