[Fix #263] Revert "Ensure that $terminfo values are valid"

The VT100 terminal application mode is an old relic that is no longer
needed.

This reverts commit a5f8d04d34.
This commit is contained in:
Sorin Ionescu 2012-09-07 22:35:05 -04:00
parent dd72b55f52
commit ed4e9af9c4

View file

@ -136,23 +136,8 @@ function editor-info {
}
zle -N editor-info
# Ensures that $terminfo values are valid and updates editor information when
# the keymap changes.
# Updates editor information when the keymap changes.
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.
case "$0" in
(zle-line-init)
# Enable terminal application mode.
echoti smkx
;;
(zle-line-finish)
# Disable terminal application mode.
echoti rmkx
;;
esac
# Update editor information.
zle editor-info
}
zle -N zle-keymap-select