summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.adoc1
-rw-r--r--src/core/hook/wee-hook-command.c2
-rw-r--r--src/gui/gui-completion.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index b81404c9b..01fa31790 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -26,6 +26,7 @@ New features::
Bug fixes::
+ * core: fix search of commands with UTF-8 chars in name when option weechat.look.command_incomplete is on (issue #1739)
* core: fix display of hotlist in buflist after changing value of option weechat.look.hotlist_sort (issue #1733)
* irc: fix parsing of messages 311, 312, 327 (whois) and 314 (whowas) in case of missing parameters
* irc: fix parsing of message 338 (whois, host) sent by Rizon server (issue #1737)
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 ();
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c
index bf091fdd6..ba759692a 100644
--- a/src/gui/gui-completion.c
+++ b/src/gui/gui-completion.c
@@ -321,7 +321,7 @@ gui_completion_search_command (struct t_weechat_plugin *plugin,
hook_for_other_plugin = NULL;
hook_incomplete_command = NULL;
- length_command = strlen (command);
+ length_command = utf8_strlen (command);
count_incomplete_commands = 0;
allow_incomplete_commands = CONFIG_BOOLEAN(config_look_command_incomplete);