From ee9951222c4f0e3970466f6aba2e42dea21a6cdc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Oct 2008 19:01:02 +0200 Subject: charset: renamed my_strlen() to utf8_width() my_strlen() is a bad name for the function, since the return value is not a length, but a visible width on the screen. Rename it to utf8_width() and change its return type to "unsigned". --- src/list_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/list_window.c') diff --git a/src/list_window.c b/src/list_window.c index 001b606fc..93bed8666 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -185,7 +185,7 @@ list_window_paint(struct list_window *lw, if (label) { int selected = lw->start + i == lw->selected; - size_t len = my_strlen(label); + unsigned len = utf8_width(label); if (highlight) colors_use(lw->w, COLOR_LIST_BOLD); -- cgit v1.2.3