From 0d622df87afffda1963b9c1462f4fdebd811d519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 12 Jan 2023 20:28:29 +0100 Subject: [PATCH] core: fix display glitch in command errors when a wide char is set in option weechat.look.command_chars (closes #1871) --- ChangeLog.adoc | 1 + src/core/wee-command.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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; \ }