fix default mode in zsh bindings

This commit is contained in:
Kjell Braden 2014-04-04 13:11:37 +02:00
parent b856fa5a82
commit 96d89ae81b
1 changed files with 3 additions and 2 deletions

View File

@ -75,12 +75,13 @@ _powerline_init_modes_support() {
_powerline_set_true_keymap_name "$REPLY" _powerline_set_true_keymap_name "$REPLY"
} }
_powerline_add_widget zle-keymap-select _powerline_zle_keymap_select
_powerline_set_main_keymap_name
if [[ "$_POWERLINE_MODE" != vi* ]] ; then if [[ "$_POWERLINE_MODE" != vi* ]] ; then
export _POWERLINE_DEFAULT_MODE="$_POWERLINE_MODE" export _POWERLINE_DEFAULT_MODE="$_POWERLINE_MODE"
fi fi
_powerline_add_widget zle-keymap-select _powerline_zle_keymap_select
_powerline_set_main_keymap_name
precmd_functions+=( _powerline_set_main_keymap_name ) precmd_functions+=( _powerline_set_main_keymap_name )
} }