1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

Fix the fix for Issue #1479

This commit is contained in:
Greg Berenfield 2013-01-02 19:14:57 -05:00
parent 003dd8f4b6
commit 93c90a6bf5

View file

@ -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.
if (( ${+terminfo[smkx]} )); then
printf '%s' ${terminfo[smkx]}
;;
(zle-line-finish)
# Disable terminal application mode.
printf '%s' ${terminfo[rmkx]}
;;
esac
fi
if (( ${+terminfo[rmkx]} )); then
printf '%s' ${terminfo[rmkx]}
fi
zle reset-prompt
zle -R
}