summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-17 11:06:41 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-17 11:06:41 +0200
commite59c18109d89bd269eaed9e8850f44cc6659a214 (patch)
tree383045e8ea9b254184a87f6fc4120033d23d2395 /src/gui
parentd5c4f054973743a2bacf2ea6086e489b33c728ec (diff)
downloadweechat-e59c18109d89bd269eaed9e8850f44cc6659a214.zip
core: fix color of long lines (displayed on more than one line on screen) under FreeBSD (bug #36999)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-chat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index a44a61479..b3bc4b96a 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -502,6 +502,12 @@ gui_chat_display_word (struct t_gui_window *window,
if (!simulate)
{
wattr_set (GUI_WINDOW_OBJECTS(window)->win_chat, attrs, pair, NULL);
+ /*
+ * for unknown reason, the wattr_set function sometimes
+ * fails to set the color pair under FreeBSD, so we force
+ * it again with wcolor_set
+ */
+ wcolor_set (GUI_WINDOW_OBJECTS(window)->win_chat, pair, NULL);
gui_window_restore_style ();
}
}