Skip to content

Commit

Permalink
Fix the fix for Issue ohmyzsh#1479
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Berenfield committed Jan 3, 2013
1 parent 003dd8f commit 93c90a6
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions plugins/vi-mode/vi-mode.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 93c90a6

Please sign in to comment.