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

call "zle -R" after every "zle reset-prompt"

This commit is contained in:
romkatv 2019-04-25 10:24:53 +02:00
parent 0e0132e8fa
commit 5fc6fca402

View file

@ -2124,7 +2124,7 @@ function _p9k_update_prompt() {
_P9K_REFRESH_REASON=$1 _P9K_REFRESH_REASON=$1
_p9k_set_prompt _p9k_set_prompt
_P9K_REFRESH_REASON='' _P9K_REFRESH_REASON=''
zle && zle .reset-prompt zle && zle .reset-prompt && zle -R
} }
set_default POWERLEVEL9K_PROMPT_ADD_NEWLINE false set_default POWERLEVEL9K_PROMPT_ADD_NEWLINE false
@ -2147,7 +2147,7 @@ powerlevel9k_prepare_prompts() {
} }
function _p9k_zle_keymap_select() { function _p9k_zle_keymap_select() {
zle && zle .reset-prompt zle && zle .reset-prompt && zle -R
} }
set_default POWERLEVEL9K_IGNORE_TERM_COLORS false set_default POWERLEVEL9K_IGNORE_TERM_COLORS false
@ -2182,7 +2182,7 @@ _p9k_init_timer() {
emulate -L zsh emulate -L zsh
local dummy local dummy
while IFS='' read -t -u $_P9K_TIMER_FD dummy; do true; done while IFS='' read -t -u $_P9K_TIMER_FD dummy; do true; done
zle && zle .reset-prompt zle && zle .reset-prompt && zle -R
} }
zle -F $_P9K_TIMER_FD _p9k_on_timer zle -F $_P9K_TIMER_FD _p9k_on_timer