summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-13 18:04:31 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-13 18:04:31 +0300
commit3e17260622dc9d40f55fa7d73fc346ef3185e4a5 (patch)
tree291c824277c05bc6cb46d3312fe5a855217579e5
parent4d14f9e0ba94770c55b28c2839c71dda47f97d9c (diff)
no need to call `zle -R` when using z4h
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 8d57052e..d62a559d 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6522,10 +6522,10 @@ function _p9k_reset_prompt() {
setopt prompt_subst
(( __p9k_ksh_arrays )) && setopt ksh_arrays
(( __p9k_sh_glob )) && setopt sh_glob
- (( _p9k__can_hide_cursor )) && echoti civis
{
+ (( _p9k__can_hide_cursor )) && echoti civis
zle .reset-prompt
- zle -R
+ (( ${+functions[z4h]} )) || zle -R
} always {
(( _p9k__can_hide_cursor )) && echoti cnorm
_p9k__cursor_hidden=0