summaryrefslogtreecommitdiff
path: root/src/core/hook
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-01-15 09:42:10 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-01-15 09:48:50 +0100
commitbda7bb64d2956ed2225789d910f52c2960c48764 (patch)
treeeec18a4fd85e11715de3e4451eee0945fb92970a /src/core/hook
parentdee7313fcc2d24c5f2a7fff8dadac0a4700c08cd (diff)
downloadweechat-bda7bb64d2956ed2225789d910f52c2960c48764.zip
core: fix search of commands with UTF-8 chars in name when option weechat.look.command_incomplete is on (issue #1739)
Diffstat (limited to 'src/core/hook')
-rw-r--r--src/core/hook/wee-hook-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-command.c b/src/core/hook/wee-hook-command.c
index c0fd79a4f..f8c3f5e68 100644
--- a/src/core/hook/wee-hook-command.c
+++ b/src/core/hook/wee-hook-command.c
@@ -375,7 +375,7 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin,
0, NULL);
ptr_command_name = utf8_next_char (argv[0]);
- length_command_name = strlen (ptr_command_name);
+ length_command_name = utf8_strlen (ptr_command_name);
hook_exec_start ();