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

restore "loading" git status

This commit is contained in:
romkatv 2019-03-19 23:39:07 +01:00
parent ea13f92993
commit c04536ce70

View file

@ -1625,7 +1625,7 @@ function _p9k_vcs_render() {
[[ $#msg != 0 || $dir == / ]] && break [[ $#msg != 0 || $dir == / ]] && break
dir=${dir:h} dir=${dir:h}
done done
(( $#msg )) || msg=(loading) [[ $#msg -gt 1 || -n ${msg[0]} ]] || msg=(loading)
$2_prompt_segment $1_LOADING $3 "${vcs_states[loading]}" "$DEFAULT_COLOR" '' 0 '' "${msg[@]}" $2_prompt_segment $1_LOADING $3 "${vcs_states[loading]}" "$DEFAULT_COLOR" '' 0 '' "${msg[@]}"
return 0 return 0
fi fi