Commit 93c90a6b authored by Greg Berenfield's avatar Greg Berenfield
Browse files

Fix the fix for Issue #1479

parent 003dd8f4
......@@ -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.
fi
if (( ${+terminfo[rmkx]} )); then
printf '%s' ${terminfo[rmkx]}
;;
esac
fi
zle reset-prompt
zle -R
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment