1
0
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:
Sebastien Helleu
2005-01-08 11:53:10 +00:00
parent 55c042d604
commit d8360af103
2 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -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);
+4 -3
View File
@@ -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);