From c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Jan 2021 20:43:27 +0100 Subject: New upstream version 3.0.5 --- ListItem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ListItem.c') diff --git a/ListItem.c b/ListItem.c index c3c1a7d..7ccf8d7 100644 --- a/ListItem.c +++ b/ListItem.c @@ -29,7 +29,7 @@ static void ListItem_display(const Object* cast, RichString* out) { assert (this != NULL); if (this->moving) { - RichString_write(out, CRT_colors[DEFAULT_COLOR], + RichString_writeWide(out, CRT_colors[DEFAULT_COLOR], #ifdef HAVE_LIBNCURSESW CRT_utf8 ? "↕ " : #endif @@ -37,7 +37,7 @@ static void ListItem_display(const Object* cast, RichString* out) { } else { RichString_prune(out); } - RichString_append(out, CRT_colors[DEFAULT_COLOR], this->value); + RichString_appendWide(out, CRT_colors[DEFAULT_COLOR], this->value); } ListItem* ListItem_new(const char* value, int key) { @@ -57,7 +57,7 @@ void ListItem_append(ListItem* this, const char* text) { this->value[newLen] = '\0'; } -static long ListItem_compare(const void* cast1, const void* cast2) { +static int ListItem_compare(const void* cast1, const void* cast2) { const ListItem* obj1 = (const ListItem*) cast1; const ListItem* obj2 = (const ListItem*) cast2; return strcmp(obj1->value, obj2->value); -- cgit v1.2.3