diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-12 20:28:29 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-12 20:28:29 +0100 |
commit | 0d622df87afffda1963b9c1462f4fdebd811d519 (patch) | |
tree | 0799ddc045115f501aa0d13812cb1d3ad9b4d2d3 /src | |
parent | 1a15171912f9cfc72fb7cefd1af66c9dd6784d8d (diff) | |
download | weechat-0d622df87afffda1963b9c1462f4fdebd811d519.zip |
core: fix display glitch in command errors when a wide char is set in option weechat.look.command_chars (closes #1871)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-command.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; \ } |