zshrc: Make zle-smkx() and zle-rmkx() more robust wrt changed options
authorFrank Terbeck <ft@grml.org>
Mon, 1 Apr 2013 14:58:43 +0000 (16:58 +0200)
committerFrank Terbeck <ft@grml.org>
Mon, 1 Apr 2013 14:58:43 +0000 (16:58 +0200)
Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc

index e475070..335d71e 100644 (file)
@@ -1342,9 +1342,11 @@ function bind2maps () {
 
 if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
     function zle-smkx () {
+        emulate -L zsh
         printf '%s' ${terminfo[smkx]}
     }
     function zle-rmkx () {
+        emulate -L zsh
         printf '%s' ${terminfo[rmkx]}
     }
     function zle-line-init () {