mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
simplify code a little bit
This commit is contained in:
parent
e7b036418b
commit
3077929e18
1 changed files with 15 additions and 17 deletions
|
@ -6902,8 +6902,11 @@ function _p9k_wrap_widgets() {
|
||||||
|
|
||||||
function _p9k_restore_prompt() {
|
function _p9k_restore_prompt() {
|
||||||
eval "$__p9k_intro"
|
eval "$__p9k_intro"
|
||||||
{
|
zle -F $1
|
||||||
(( _p9k__must_restore_prompt )) || return
|
exec {1}>&-
|
||||||
|
_p9k__restore_prompt_fd=0
|
||||||
|
|
||||||
|
(( _p9k__must_restore_prompt )) || return 0
|
||||||
_p9k__must_restore_prompt=0
|
_p9k__must_restore_prompt=0
|
||||||
|
|
||||||
unset _p9k__line_finished
|
unset _p9k__line_finished
|
||||||
|
@ -6916,11 +6919,6 @@ function _p9k_restore_prompt() {
|
||||||
_p9k__expanded=0
|
_p9k__expanded=0
|
||||||
_p9k_reset_prompt
|
_p9k_reset_prompt
|
||||||
P9K_TTY=$tty
|
P9K_TTY=$tty
|
||||||
} always {
|
|
||||||
zle -F $1
|
|
||||||
exec {1}>&-
|
|
||||||
_p9k__restore_prompt_fd=0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt__p9k_internal_nothing() { _p9k__prompt+='${_p9k__sss::=}'; }
|
prompt__p9k_internal_nothing() { _p9k__prompt+='${_p9k__sss::=}'; }
|
||||||
|
|
Loading…
Reference in a new issue