aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tsar.c')
-rw-r--r--src/tsar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tsar.c b/src/tsar.c
index 8cc74c7..d123cbe 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -154,6 +154,10 @@ void draw_comp_set(float pos_ratio, comp_t **set, int size) {
int y = 0;//(bar_height - font->height) / 2;
for (int i = 0; i < size; i++) {
comp_t *comp = set[i];
+ if (strlen(comp->data) == 0) {
+ continue;
+ }
+
draw_text(comp, x, y);
int margin = comp->margin_left + comp->margin_right;