From 5fde0e012762b07e4955306b743afcf43fe237c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 13 Jan 2021 19:22:33 +0100 Subject: RichString_appendChr: add parameter to set attributes Allows to set attributes when padding process fields in non-wide ncurses mode. Closes: #475 --- Meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Meter.c') 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) { -- cgit v1.2.3