From 38a7306ba82622882c2da36d68596cb25d3d8aa7 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 28 Jul 2020 00:33:52 -0400 Subject: [PATCH] mojibake: work around wcwidth inaccuracies --- src/demo/mojibake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/mojibake.c b/src/demo/mojibake.c index bdc6224f3..f7cb80a28 100644 --- a/src/demo/mojibake.c +++ b/src/demo/mojibake.c @@ -3395,7 +3395,7 @@ static struct ncplane* mojiplane(struct ncplane* title, int y, int rows, const char* summary){ struct ncplane* n = ncplane_aligned(title, rows, planewidth, y, NCALIGN_CENTER, NULL); uint64_t channels = CHANNELS_RGB_INITIALIZER(0xf0, 0xa0, 0xf0, 0x10, 0x10, 0x60); - if(ncplane_perimeter_rounded(n, 0, channels, 0) < 0){ + if(ncplane_perimeter_rounded(n, 0, channels, NCBOXMASK_RIGHT) < 0){ ncplane_destroy(n); return NULL; }