1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

no need to call zle -R when using z4h

This commit is contained in:
Roman Perepelitsa 2020-06-13 17:04:31 +02:00
parent 4d14f9e0ba
commit 3e17260622

View file

@ -6522,10 +6522,10 @@ function _p9k_reset_prompt() {
setopt prompt_subst setopt prompt_subst
(( __p9k_ksh_arrays )) && setopt ksh_arrays (( __p9k_ksh_arrays )) && setopt ksh_arrays
(( __p9k_sh_glob )) && setopt sh_glob (( __p9k_sh_glob )) && setopt sh_glob
(( _p9k__can_hide_cursor )) && echoti civis
{ {
(( _p9k__can_hide_cursor )) && echoti civis
zle .reset-prompt zle .reset-prompt
zle -R (( ${+functions[z4h]} )) || zle -R
} always { } always {
(( _p9k__can_hide_cursor )) && echoti cnorm (( _p9k__can_hide_cursor )) && echoti cnorm
_p9k__cursor_hidden=0 _p9k__cursor_hidden=0