diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-08-11 21:33:33 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-08-11 21:33:33 +0200 |
commit | ced1a5b3e1260e0e448f2ed6a7e91956ffeebd71 (patch) | |
tree | b19a59d09db422795973c267f8db90883de0ebae /zsh | |
parent | 75a903d038b6141f577aad480a4667162d32080e (diff) | |
download | dotfiles-ced1a5b3e1260e0e448f2ed6a7e91956ffeebd71.tar.xz |
zsh/keybindings: Enable application mode for zle
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/keybindings.zsh | 12 |
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 |