aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-02 19:01:02 +0200
committerMax Kellermann <max@duempel.org>2008-10-02 19:01:02 +0200
commitee9951222c4f0e3970466f6aba2e42dea21a6cdc (patch)
treee02b7d1ae6b5078df340485e1b81861a0aab9e12 /src/list_window.c
parentb693269fd9740a3074b84da5645f6bd9daa6486e (diff)
downloadmpd-ee9951222c4f0e3970466f6aba2e42dea21a6cdc.tar.gz
mpd-ee9951222c4f0e3970466f6aba2e42dea21a6cdc.tar.xz
mpd-ee9951222c4f0e3970466f6aba2e42dea21a6cdc.zip
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".
Diffstat (limited to 'src/list_window.c')
-rw-r--r--src/list_window.c2
1 files changed, 1 insertions, 1 deletions
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);