if [[ -n $keymap ]] {
source $keymap
} else {
- echo "Failed to source file $keymap" >&2
+ echo "Failed to source keymap file $keymap" >&2
}
unfunction find_keymap; unset keymap
} else {
# activate application mode for zle so terminfo keys work
- # don't do this for zkbd since application mode shouldn't have ben enabled
+ # NOTE: don't do this for zkbd since application mode shouldn't have been
+ # enabled by zkbd when the keymap file was generated
if [[ -v terminfo[smkx] && -v terminfo[rmkx] ]] {
autoload -Uz add-zle-hook-widget
function _enter-application-mode { echoti smkx }