mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 05:16:38 +02:00
irc: display the arrow before server name in raw buffer
This prevents the arrow to be truncated if the option weechat.look.prefix_align_max is set to a non-zero value.
This commit is contained in:
@@ -28,6 +28,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
|
||||
* core: fix truncated messages after a word with a length of zero on screen
|
||||
(for example a zero width space: U+200B) (bug #40985, issue #502)
|
||||
* irc: display the arrow before server name in raw buffer
|
||||
* irc: fix display of messages sent to server in raw buffer
|
||||
* irc: fix display of invalid UTF-8 chars in raw buffer
|
||||
|
||||
|
||||
@@ -300,13 +300,13 @@ irc_raw_message_add (struct t_irc_server *server, int flags,
|
||||
}
|
||||
|
||||
snprintf (prefix, sizeof (prefix), "%s%s%s%s%s",
|
||||
(server) ? weechat_color ("chat_server") : "",
|
||||
(server) ? server->name : "",
|
||||
(server) ? " " : "",
|
||||
(flags & IRC_RAW_FLAG_SEND) ?
|
||||
weechat_color ("chat_prefix_quit") :
|
||||
weechat_color ("chat_prefix_join"),
|
||||
prefix_arrow);
|
||||
prefix_arrow,
|
||||
(server) ? weechat_color ("chat_server") : "",
|
||||
(server) ? " " : "",
|
||||
(server) ? server->name : "");
|
||||
}
|
||||
|
||||
new_raw_message = irc_raw_message_add_to_list (time (NULL),
|
||||
|
||||
Reference in New Issue
Block a user