Don't add icon separator if there is no icon for a status module (#265)
Implemented with advice of @vdbe Co-authored-by: Aleksandr Jakusev <no@email.com>
This commit is contained in:
parent
e2a1043f42
commit
df238924bc
1 changed files with 4 additions and 0 deletions
|
@ -40,5 +40,9 @@ build_status_module() {
|
|||
local show_left_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_left_separator"
|
||||
fi
|
||||
|
||||
if [ -z "$icon" ] ; then
|
||||
show_icon=""
|
||||
fi
|
||||
|
||||
echo "$show_left_separator$show_icon$show_text$show_right_separator"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue