diff options
-rw-r--r-- | src/gui/curses/gui-display.c | 11 | ||||
-rw-r--r-- | weechat/src/gui/curses/gui-display.c | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index bb9c674c9..f424e9f75 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -1010,10 +1010,15 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) else wprintw (ptr_win->win_status, "%s", CHANNEL(ptr_win->buffer)->name); - if (ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer) + if ((ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer) + && (CHANNEL(ptr_win->buffer)->type == CHAT_CHANNEL)) { /* display channel modes */ + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS_DELIMITERS); wprintw (ptr_win->win_status, "("); + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS); i = 0; first_mode = 1; while (CHANNEL(ptr_win->buffer)->modes[i]) @@ -1036,7 +1041,11 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) if (CHANNEL(ptr_win->buffer)->modes[CHANNEL_MODE_LIMIT] != ' ') wprintw (ptr_win->win_status, ",%d", CHANNEL(ptr_win->buffer)->limit); + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS_DELIMITERS); wprintw (ptr_win->win_status, ")"); + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS); } wprintw (ptr_win->win_status, " "); } diff --git a/weechat/src/gui/curses/gui-display.c b/weechat/src/gui/curses/gui-display.c index bb9c674c9..f424e9f75 100644 --- a/weechat/src/gui/curses/gui-display.c +++ b/weechat/src/gui/curses/gui-display.c @@ -1010,10 +1010,15 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) else wprintw (ptr_win->win_status, "%s", CHANNEL(ptr_win->buffer)->name); - if (ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer) + if ((ptr_win->buffer == CHANNEL(ptr_win->buffer)->buffer) + && (CHANNEL(ptr_win->buffer)->type == CHAT_CHANNEL)) { /* display channel modes */ + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS_DELIMITERS); wprintw (ptr_win->win_status, "("); + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS); i = 0; first_mode = 1; while (CHANNEL(ptr_win->buffer)->modes[i]) @@ -1036,7 +1041,11 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) if (CHANNEL(ptr_win->buffer)->modes[CHANNEL_MODE_LIMIT] != ' ') wprintw (ptr_win->win_status, ",%d", CHANNEL(ptr_win->buffer)->limit); + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS_DELIMITERS); wprintw (ptr_win->win_status, ")"); + gui_window_set_color (ptr_win->win_status, + COLOR_WIN_STATUS); } wprintw (ptr_win->win_status, " "); } |