mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
bug fix: default {RIGHT,LEFT}_MIDDLE_WHITESPACE to space
This commit is contained in:
parent
78eee98250
commit
ef06651f68
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue