summaryrefslogtreecommitdiff
path: root/plugins/vi-mode
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-11-29 14:31:35 +0100
committerMarc Cornellà <marc.cornella@live.com>2015-11-29 14:31:35 +0100
commit46824b39a301087173e0c9af5368333782f9ef9b (patch)
treec25b1e04e651147e9064f2767ef3af6da7d2a6a3 /plugins/vi-mode
parentd3b952050120de49bcd28be29c3384126503acf1 (diff)
parent8ea773582f4628b1ed7222b95463f835b684478d (diff)
downloadzsh-46824b39a301087173e0c9af5368333782f9ef9b.tar.gz
zsh-46824b39a301087173e0c9af5368333782f9ef9b.tar.bz2
zsh-46824b39a301087173e0c9af5368333782f9ef9b.zip
Merge pull request #4191 from apjanke/vi-mode-fix-smkx
vi-mode: fix smkx/rmkx by removing broken line-init/finish widgets
Diffstat (limited to 'plugins/vi-mode')
-rw-r--r--plugins/vi-mode/vi-mode.plugin.zsh16
1 files changed, 2 insertions, 14 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index 4424bb29a..0e2af5dce 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -1,15 +1,5 @@
-# Ensures that $terminfo values are valid and 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.
- if (( ${+terminfo[smkx]} )); then
- printf '%s' ${terminfo[smkx]}
- fi
- if (( ${+terminfo[rmkx]} )); then
- printf '%s' ${terminfo[rmkx]}
- fi
-
+# Updates editor information when the keymap changes.
+function zle-keymap-select() {
zle reset-prompt
zle -R
}
@@ -19,8 +9,6 @@ TRAPWINCH() {
zle && { zle reset-prompt; zle -R }
}
-zle -N zle-line-init
-zle -N zle-line-finish
zle -N zle-keymap-select
zle -N edit-command-line