1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 21:41:57 +00:00

goddamn widget wrappers!

This commit is contained in:
romkatv 2019-05-27 23:04:20 +02:00
parent 8c97104c79
commit 7f08e8a053

View file

@ -2462,7 +2462,8 @@ _p9k_init() {
autoload -Uz add-zle-hook-widget
zle -N _p9k_zle_line_finish
add-zle-hook-widget line-finish _p9k_zle_line_finish
add-zle-hook-widget -D line-finish user:_zsh_highlight_widget_orig-\*-zle-line-finish
add-zle-hook-widget -D line-finish user:_zsh_highlight_widget_orig-\*
add-zle-hook-widget -D line-finish user:_zsh_autosuggest_bound_\*
fi
fi
else
@ -2524,7 +2525,8 @@ _p9k_init() {
}
autoload -Uz add-zle-hook-widget
add-zle-hook-widget line-pre-redraw _p9k_zle_line_pre_redraw
add-zle-hook-widget -D line-pre-redraw user:_zsh_highlight_widget_orig-\*-zle-line-pre-redraw
add-zle-hook-widget -D line-pre-redraw user:_zsh_highlight_widget_orig-\*
add-zle-hook-widget -D line-pre-redraw user:_zsh_autosuggest_bound_\*
_p9k_g_expand POWERLEVEL9K_VI_VISUAL_MODE_STRING
else
>&2 print -P '%F{yellow}WARNING!%f POWERLEVEL9K_VI_VISUAL_MODE_STRING requires ZSH >= 5.3.'