no need to call `zle -R` when using z4h

pull/829/head
Roman Perepelitsa 4 years ago
parent 4d14f9e0ba
commit 3e17260622

@ -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

Loading…
Cancel
Save