mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
Fix the fix for Issue #1479
This commit is contained in:
parent
003dd8f4b6
commit
93c90a6bf5
1 changed files with 6 additions and 11 deletions
|
@ -3,18 +3,13 @@
|
||||||
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
|
# The terminal must be in application mode when ZLE is active for $terminfo
|
||||||
# values to be valid.
|
# values to be valid.
|
||||||
if (( $+terminfo[smkx] && $+terminfo[rmkx] )); then
|
if (( ${+terminfo[smkx]} )); then
|
||||||
case "$0" in
|
printf '%s' ${terminfo[smkx]}
|
||||||
(zle-line-init)
|
|
||||||
# Enable terminal application mode.
|
|
||||||
printf '%s' ${terminfo[smkx]}
|
|
||||||
;;
|
|
||||||
(zle-line-finish)
|
|
||||||
# Disable terminal application mode.
|
|
||||||
printf '%s' ${terminfo[rmkx]}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
if (( ${+terminfo[rmkx]} )); then
|
||||||
|
printf '%s' ${terminfo[rmkx]}
|
||||||
|
fi
|
||||||
|
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
zle -R
|
zle -R
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue