diff --git a/ChangeLog.adoc b/ChangeLog.adoc index b921a545c..02dbb3a84 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] Bug fixes:: + * core: fix display glitch in command errors when a wide char is set in option weechat.look.command_chars (issue #1871) * typing: fix crash when pointer buffer is not received in callback for signal "input_text_changed" (issue #1869) Build:: diff --git a/src/core/wee-command.h b/src/core/wee-command.h index 6d7154b18..0decd8737 100644 --- a/src/core/wee-command.h +++ b/src/core/wee-command.h @@ -63,7 +63,7 @@ argv[0], \ (__option && __option[0]) ? " " : "", \ (__option && __option[0]) ? __option : "", \ - argv[0] + 1); \ + utf8_next_char (argv[0])); \ return WEECHAT_RC_ERROR; \ } @@ -76,7 +76,7 @@ "(help on command: /help %s)"), \ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], \ argv_eol[0], \ - argv[0] + 1); \ + utf8_next_char (argv[0])); \ return WEECHAT_RC_ERROR; \ }