aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/keybindings.zsh12
1 files changed, 12 insertions, 0 deletions
diff --git a/zsh/keybindings.zsh b/zsh/keybindings.zsh
index cf22513..bfaaa9b 100644
--- a/zsh/keybindings.zsh
+++ b/zsh/keybindings.zsh
@@ -2,6 +2,18 @@
# Keybindings
#
+
+# Make sure the terminal is in application mode when zle is active. Only then
+# are the values from $terminfo valid.
+function zle-line-init () {
+ printf '%s' "${terminfo[smkx]}"
+}
+function zle-line-finish () {
+ printf '%s' "${terminfo[rmkx]}"
+}
+zle -N zle-line-init
+zle -N zle-line-finish
+
bindkey -v
# Shift-tab