diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-01-08 16:28:06 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-01-08 16:28:06 +0000 |
commit | c14e09063833e52d4d9a215bce788f67742538c7 (patch) | |
tree | aecc0ac982453d5ec55a327881faa3d3eb4e0d0c /src | |
parent | 1b348cf8ad996818ca3db79d97f5539febc336ff (diff) | |
download | weechat-c14e09063833e52d4d9a215bce788f67742538c7.zip |
Fixed bug in topic display
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 145f5f99a..4cc32ed0c 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -208,7 +208,7 @@ gui_chat_draw_title (t_gui_buffer *buffer, int erase) if (utf8_width_screen (ptr_topic) > ptr_win->win_width) { gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_title, COLOR_WIN_TITLE); - wprintw (GUI_CURSES(ptr_win)->win_title, "%s", ptr_topic); + wprintw (GUI_CURSES(ptr_win)->win_title, "%s", (buf2) ? buf2 : ptr_topic); gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_title, COLOR_WIN_TITLE_MORE); mvwprintw (GUI_CURSES(ptr_win)->win_title, 0, ptr_win->win_width - 2, @@ -217,7 +217,7 @@ gui_chat_draw_title (t_gui_buffer *buffer, int erase) else { gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_title, COLOR_WIN_TITLE); - wprintw (GUI_CURSES(ptr_win)->win_title, "%s", ptr_topic); + wprintw (GUI_CURSES(ptr_win)->win_title, "%s", (buf2) ? buf2 : ptr_topic); } if (buf) free (buf); |