ab0601c evaluate previously declared zle-line-init

This commit is contained in:
clutton 2017-02-09 17:58:44 +02:00
parent c743766852
commit 1785665caf
No known key found for this signature in database
GPG Key ID: 7DB03F8DB2C8FE90

View File

@ -34,12 +34,14 @@ function zle-keymap-select() {
fi fi
}; zle -N zle-keymap-select }; zle -N zle-keymap-select
eval "override-vi-mode-$(declare -f zle-line-init)"
zle-line-init () { zle-line-init () {
if [ $TERM = "screen" ]; then if [ $TERM = "screen" ]; then
echo -ne $VIM_INSERT_COLOR echo -ne $VIM_INSERT_COLOR
elif [ $TERM != "linux" ]; then elif [ $TERM != "linux" ]; then
echo -ne $VIM_INSERT_COLOR echo -ne $VIM_INSERT_COLOR
fi fi
override-vi-mode-zle-line-init
}; zle -N zle-line-init }; zle -N zle-line-init
autoload -U select-quoted autoload -U select-quoted