summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-01 08:58:36 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-01 08:58:36 +0200
commit13ce1147fc69bbef65e5f35b218a60b24323983e (patch)
treea59e8120a8e62be18af3dcb4bc03e7c2464e115d /src/core
parentb7cd4468220668505fea903f24f9bfdc4fb97911 (diff)
downloadweechat-13ce1147fc69bbef65e5f35b218a60b24323983e.zip
doc: fix alignment of command arguments in auto-generated file when command name contains wide chars
Diffstat (limited to 'src/core')
-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;