diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-13 19:22:33 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-01-13 19:22:33 +0100 |
commit | 5fde0e012762b07e4955306b743afcf43fe237c6 (patch) | |
tree | 9cafb88fd46fc8b9c9a59e0ce948107f1f6becd9 /Meter.c | |
parent | 78b993dbb4d58aec8cb5b32f23014eeabd900f2f (diff) |
RichString_appendChr: add parameter to set attributes
Allows to set attributes when padding process fields in non-wide ncurses
mode.
Closes: #475
Diffstat (limited to 'Meter.c')
-rw-r--r-- | Meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -201,7 +201,7 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) { // The text in the bar is right aligned; // Pad with maximal spaces and then calculate needed starting position offset RichString_begin(bar); - RichString_appendChr(&bar, ' ', w); + RichString_appendChr(&bar, 0, ' ', w); RichString_appendWide(&bar, 0, buffer); int startPos = RichString_sizeVal(bar) - w; if (startPos > w) { |