1
0
Fork 0

[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.
pull/277/head
Sorin Ionescu 12 years ago
parent dd72b55f52
commit ed4e9af9c4

@ -136,23 +136,8 @@ function editor-info {
} }
zle -N editor-info zle -N editor-info
# Ensures that $terminfo values are valid and updates editor information when # Updates editor information when the keymap changes.
# the keymap changes.
function zle-keymap-select zle-line-init zle-line-finish { 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 editor-info
} }
zle -N zle-keymap-select zle -N zle-keymap-select

Loading…
Cancel
Save