aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-11 21:33:33 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-08-11 21:33:33 +0200
commitced1a5b3e1260e0e448f2ed6a7e91956ffeebd71 (patch)
treeb19a59d09db422795973c267f8db90883de0ebae /zsh
parent75a903d038b6141f577aad480a4667162d32080e (diff)
downloaddotfiles-ced1a5b3e1260e0e448f2ed6a7e91956ffeebd71.tar.xz
zsh/keybindings: Enable application mode for zle
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