chore: make the coding style consistent

This commit is contained in:
fish 2021-04-24 16:08:48 +08:00
parent 3f8a788af2
commit e59dd9ecf1
1 changed files with 3 additions and 1 deletions

View File

@ -871,7 +871,9 @@ _p9k_right_prompt_segment() {
_p9k_get_icon $1 RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL $sep _p9k_get_icon $1 RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL $sep
local start_sep=$_p9k__ret local start_sep=$_p9k__ret
[[ -z $bg_color ]] && start_sep='' if [[ -z $bg_color ]];then
start_sep=''
fi
[[ -n $start_sep ]] && start_sep="%b%k%F{$bg_color}$start_sep" [[ -n $start_sep ]] && start_sep="%b%k%F{$bg_color}$start_sep"
_p9k_get_icon $1 RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL _p9k_get_icon $1 RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL