1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

core: fix search of commands with UTF-8 chars in name when option weechat.look.command_incomplete is on (issue #1739)

This commit is contained in:
Sébastien Helleu
2022-01-15 09:42:10 +01:00
parent dee7313fcc
commit bda7bb64d2
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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 ();
+1 -1
View File
@@ -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);