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

pull/275/head
romkatv 5 years ago
parent cf2eef5556
commit 32f363a1b1

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

Loading…
Cancel
Save