diff options
| author | iamcheeseman <[email protected]> | 2026-03-04 08:05:21 -0500 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-04 08:05:21 -0500 |
| commit | 6f584aa65ac172148a93f59c528be2624b584c01 (patch) | |
| tree | 00723eeab046cc610eb583645cd0aeed18817a09 /src | |
| parent | 379493d8246220fc9a2892d6b8e7e86928b36c80 (diff) | |
allow 0 length strings
Diffstat (limited to 'src')
| -rw-r--r-- | src/tsar.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |
