summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-chat.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-06-13 15:25:38 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-06-13 15:25:38 +0200
commit1e71196aee318a2e7a68242ed2099170b36b9f32 (patch)
tree455efca0256f5c4de46144975c881c01e72304d8 /src/gui/curses/gui-curses-chat.c
parent00ab6400b8c4cf2decf7538146302392e6340abc (diff)
downloadweechat-1e71196aee318a2e7a68242ed2099170b36b9f32.zip
core: add option "tags" for command /debug
Diffstat (limited to 'src/gui/curses/gui-curses-chat.c')
-rw-r--r--src/gui/curses/gui-curses-chat.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index c9173fdb1..6c380f051 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -712,7 +712,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
int word_start_offset, word_end_offset;
int word_length_with_spaces, word_length;
char *ptr_data, *ptr_end_offset, *next_char;
- char *ptr_style;
+ char *ptr_style, *message_with_tags;
if (!line)
return 0;
@@ -762,7 +762,10 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
}
else
{
- ptr_data = line->data->message;
+ message_with_tags = (gui_chat_display_tags) ?
+ gui_chat_build_string_message_tags (line) : NULL;
+ ptr_data = (message_with_tags) ?
+ message_with_tags : line->data->message;
while (ptr_data && ptr_data[0])
{
gui_chat_get_word_info (window,
@@ -838,6 +841,8 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
ptr_data = NULL;
}
}
+ if (message_with_tags)
+ free (message_with_tags);
}
if (marker_line)