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

move p10k-instant-prompt-finalize to the static source file

This commit is contained in:
romkatv 2019-10-20 10:56:11 +02:00
parent cf2eef5556
commit 32f363a1b1

View file

@ -3604,7 +3604,6 @@ _p9k_dump_instant_prompt() {
precmd_functions=(${(@)precmd_functions:#_p9k_instant_prompt_precmd_first})
}
precmd_functions=(_p9k_instant_prompt_precmd_first $precmd_functions)
function p10k-instant-prompt-finalize() { unsetopt localoptions prompt_cr; }
} && unsetopt prompt_cr prompt_sp || true'
} always {
exec {fd}>&-
@ -5342,6 +5341,10 @@ function p10k() {
# Hook for zplugin.
powerlevel10k_plugin_unload() { prompt_powerlevel9k_teardown; }
function p10k-instant-prompt-finalize() {
(( ! __p9k_instant_prompt_active )) || unsetopt localoptions prompt_cr
}
autoload -Uz add-zsh-hook
zmodload zsh/datetime