diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-25 10:22:34 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-25 10:22:34 +0300 |
commit | add0875137fc45a065064f8be124db2a37e45876 (patch) | |
tree | 9cf5c2b98005e95770263cf446961461ae11bd38 /internal/p10k.zsh | |
parent | 5f8ca7259819ae76c256248d3fdf1e3bec91564b (diff) |
bug fix: set _p9k_keymap whenever vi_mode is in use
fixes #232
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c569a408..240e4bdc 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4183,7 +4183,7 @@ _p9k_init_prompt() { _p9k_prompt_suffix_left='${${COLUMNS::=$_p9k_clm}+}' _p9k_prompt_suffix_right='${${COLUMNS::=$_p9k_clm}+}' - if _p9k_segment_in_use vi_mode && (( $+_POWERLEVEL9K_VI_VISUAL_MODE_STRING )) || _p9k_segment_in_use prompt_char; then + if _p9k_segment_in_use vi_mode || _p9k_segment_in_use prompt_char; then _p9k_prompt_prefix_left+='${${_p9k_keymap::=${KEYMAP:-$_p9k_keymap}}+}' fi if { _p9k_segment_in_use vi_mode && (( $+_POWERLEVEL9K_VI_OVERWRITE_MODE_STRING )) } || @@ -4490,6 +4490,10 @@ _p9k_init() { _p9k_init_async_pump + if _p9k_segment_in_use vi_mode || _p9k_segment_in_use prompt_char; then + _p9k_wrap_zle_widget zle-keymap-select _p9k_zle_keymap_select + fi + if _p9k_segment_in_use vi_mode && (( $+_POWERLEVEL9K_VI_VISUAL_MODE_STRING )) || _p9k_segment_in_use prompt_char; then _p9k_wrap_zle_widget zle-line-pre-redraw _p9k_zle_line_pre_redraw fi @@ -4518,8 +4522,6 @@ _p9k_init() { fi fi - _p9k_wrap_zle_widget zle-keymap-select _p9k_zle_keymap_select - if [[ -n $_POWERLEVEL9K_PUBLIC_IP_VPN_INTERFACE ]] && _p9k_segment_in_use public_ip || _p9k_segment_in_use ip || _p9k_segment_in_use vpn_ip; then _p9k_fetch_iface=1 |