zshrc: Make zle-smkx() and zle-rmkx() more robust wrt changed options
[grml-etc-core.git] / 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 () {