diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-11-25 21:28:14 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-11-25 21:28:14 +0100 |
commit | e92079cfe9c2ad89cf4c9f7d2ce146f4393cb9f4 (patch) | |
tree | 09343bd04a8c939351237d3babdcf0b05f0a0eb4 /src/gui | |
parent | 8b9abab711ccdccceafcbea351b8bef0d23b8ecd (diff) | |
download | weechat-e92079cfe9c2ad89cf4c9f7d2ce146f4393cb9f4.zip |
Add new option weechat.look.highlight_regex and function string_has_highlight_regex in plugin API (task #10321)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-line.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index 3d07aef5a..102d5d7ac 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -474,6 +474,12 @@ gui_line_has_highlight (struct t_gui_line *line) free (highlight_words); } + if (!rc && config_highlight_regex) + { + rc = string_has_highlight_regex_compiled (msg_no_color, + config_highlight_regex); + } + free (msg_no_color); return rc; |