diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-13 06:41:44 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-13 06:41:44 -0200 |
commit | b544c22c72613d561180738d8c31c97712b3c0ef (patch) | |
tree | 131f338092517943c40c7598de315c166b8ac5ae | |
parent | f37a050d3d0c6928b09d9b19e1283a695c52ccc7 (diff) |
Fix issue with small terminals.
Fixes #733.
-rw-r--r-- | Meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -287,7 +287,7 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) { int blockSizes[10]; - xSnprintf(bar, w + 1, "%*s", w, buffer); + xSnprintf(bar, w + 1, "%*.*s", w, w, buffer); // First draw in the bar[] buffer... int offset = 0; |