summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-doc.c b/src/core/wee-doc.c
index 133d4979c..51fe5fa8f 100644
--- a/src/core/wee-doc.c
+++ b/src/core/wee-doc.c
@@ -317,7 +317,7 @@ doc_gen_user_commands (const char *path, const char *lang)
HOOK_COMMAND(ptr_hook, command),
TRANS(HOOK_COMMAND(ptr_hook, description)));
- length = 1 + utf8_strlen (HOOK_COMMAND(ptr_hook, command)) + 2;
+ length = 1 + utf8_strlen_screen (HOOK_COMMAND(ptr_hook, command)) + 2;
snprintf (format, sizeof (format), "%%-%ds%%s\n", length);
ptr_args = TRANS(HOOK_COMMAND(ptr_hook, args));
first_line = 1;