summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-01 22:09:12 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-01 22:09:12 +0200
commitbd436db2bc061efc9821e7a5e1443ff32bd0b0d0 (patch)
tree8a152a36cc735c57434df043ec8d587d7c00f8ce /src/gui/gui-buffer.h
parent4fa856c77316eadd36c65a197f68422d4a8dae68 (diff)
downloadweechat-bd436db2bc061efc9821e7a5e1443ff32bd0b0d0.zip
Reintroduce highlight (move code from irc plugin to core)
Diffstat (limited to 'src/gui/gui-buffer.h')
-rw-r--r--src/gui/gui-buffer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h
index 121cd185e..8e29a4513 100644
--- a/src/gui/gui-buffer.h
+++ b/src/gui/gui-buffer.h
@@ -49,6 +49,7 @@ struct t_gui_line
int tags_count; /* number of tags for line */
char **tags_array; /* tags for line */
char displayed; /* 1 if line is displayed */
+ char highlight; /* 1 if line has highlight */
char refresh_needed; /* 1 if refresh asked (free buffer) */
char *prefix; /* prefix for line (may be NULL) */
int prefix_length; /* prefix length (on screen) */
@@ -131,6 +132,12 @@ struct t_gui_buffer
int text_search_found; /* 1 if text found, otherwise 0 */
char *text_search_input; /* input saved before text search */
+ /* highlight settings for buffer */
+ char *highlight_words; /* list of words to highlight */
+ int highlight_tags_count; /* number of tags to highlight */
+ /* (if 0, any tag is highlighted) */
+ char **highlight_tags_array; /* tags to highlight */
+
/* keys associated to buffer */
struct t_gui_key *keys; /* keys specific to buffer */
struct t_gui_key *last_key; /* last key for buffer */