bug fix: default {RIGHT,LEFT}_MIDDLE_WHITESPACE to space

pull/145/head
romkatv 5 years ago
parent 78eee98250
commit ef06651f68

@ -360,7 +360,7 @@ left_prompt_segment() {
[[ $_P9K_RETVAL != $style_ || $need_style == 1 ]] && p+=$_P9K_RETVAL [[ $_P9K_RETVAL != $style_ || $need_style == 1 ]] && p+=$_P9K_RETVAL
p+='${_P9K_V}' p+='${_P9K_V}'
_p9k_get_icon $1 LEFT_MIDDLE_WHITESPACE $space _p9k_get_icon $1 LEFT_MIDDLE_WHITESPACE ' '
if [[ -n $_P9K_RETVAL ]]; then if [[ -n $_P9K_RETVAL ]]; then
_p9k_escape $_P9K_RETVAL _p9k_escape $_P9K_RETVAL
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=$style_ [[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=$style_
@ -531,7 +531,7 @@ right_prompt_segment() {
if (( has_icon != 0 )); then if (( has_icon != 0 )); then
local -i need_style=0 local -i need_style=0
_p9k_get_icon $1 RIGHT_MIDDLE_WHITESPACE $space _p9k_get_icon $1 RIGHT_MIDDLE_WHITESPACE ' '
if [[ -n $_P9K_RETVAL ]]; then if [[ -n $_P9K_RETVAL ]]; then
_p9k_escape $_P9K_RETVAL _p9k_escape $_P9K_RETVAL
[[ $_P9K_RETVAL == *%* ]] && need_style=1 [[ $_P9K_RETVAL == *%* ]] && need_style=1

Loading…
Cancel
Save