summaryrefslogtreecommitdiffstats
path: root/Meter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-13 19:22:33 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-01-13 19:22:33 +0100
commit5fde0e012762b07e4955306b743afcf43fe237c6 (patch)
tree9cafb88fd46fc8b9c9a59e0ce948107f1f6becd9 /Meter.c
parent78b993dbb4d58aec8cb5b32f23014eeabd900f2f (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meter.c b/Meter.c
index 5189c87a..0fbdcb9d 100644
--- a/Meter.c
+++ b/Meter.c
@@ -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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy