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: core: fix display glitch in command errors when a wide char is set in option weechat.look.command_chars (closes #1871) --- src/core/wee-command.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; \ } -- cgit v1.2.3