mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
Fixed display bug for title in first server buffer
This commit is contained in:
@@ -326,9 +326,9 @@ gui_draw_buffer_title (t_gui_buffer *buffer, int erase)
|
||||
wrefresh (ptr_win->win_title);
|
||||
refresh ();
|
||||
}
|
||||
snprintf (format, 32, "%%-%ds", ptr_win->win_width);
|
||||
if (CHANNEL(buffer))
|
||||
{
|
||||
snprintf (format, 32, "%%-%ds", ptr_win->win_width);
|
||||
if (CHANNEL(buffer)->topic)
|
||||
{
|
||||
buf = weechat_convert_encoding (cfg_look_charset_decode,
|
||||
@@ -344,8 +344,9 @@ gui_draw_buffer_title (t_gui_buffer *buffer, int erase)
|
||||
{
|
||||
/* TODO: change this copyright as title? */
|
||||
mvwprintw (ptr_win->win_title, 0, 0,
|
||||
"%s",
|
||||
PACKAGE_STRING " " WEECHAT_COPYRIGHT_DATE " - " WEECHAT_WEBSITE);
|
||||
format,
|
||||
PACKAGE_STRING " " WEECHAT_COPYRIGHT_DATE " - "
|
||||
WEECHAT_WEBSITE);
|
||||
}
|
||||
}
|
||||
wrefresh (ptr_win->win_title);
|
||||
|
||||
@@ -326,9 +326,9 @@ gui_draw_buffer_title (t_gui_buffer *buffer, int erase)
|
||||
wrefresh (ptr_win->win_title);
|
||||
refresh ();
|
||||
}
|
||||
snprintf (format, 32, "%%-%ds", ptr_win->win_width);
|
||||
if (CHANNEL(buffer))
|
||||
{
|
||||
snprintf (format, 32, "%%-%ds", ptr_win->win_width);
|
||||
if (CHANNEL(buffer)->topic)
|
||||
{
|
||||
buf = weechat_convert_encoding (cfg_look_charset_decode,
|
||||
@@ -344,8 +344,9 @@ gui_draw_buffer_title (t_gui_buffer *buffer, int erase)
|
||||
{
|
||||
/* TODO: change this copyright as title? */
|
||||
mvwprintw (ptr_win->win_title, 0, 0,
|
||||
"%s",
|
||||
PACKAGE_STRING " " WEECHAT_COPYRIGHT_DATE " - " WEECHAT_WEBSITE);
|
||||
format,
|
||||
PACKAGE_STRING " " WEECHAT_COPYRIGHT_DATE " - "
|
||||
WEECHAT_WEBSITE);
|
||||
}
|
||||
}
|
||||
wrefresh (ptr_win->win_title);
|
||||
|
||||
Reference in New Issue
Block a user