diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-12-15 00:07:18 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-12-15 00:07:18 +0100 |
commit | 074af68578766b32bfc589089e290614b5ba6a8d (patch) | |
tree | ac9534a3940b55b08ccc0cd391a45d4722d5bd21 /src/fe-common/core/hilight-text.c | |
parent | 38720e0ecbf346c2a3c45e0d2f7584091794edb8 (diff) | |
parent | deb6ca1b1a676fae094253fc55519e2a60c206d1 (diff) | |
download | irssi-074af68578766b32bfc589089e290614b5ba6a8d.zip |
Merge pull request #303 from vague666/fs275
Applied patch from fs#275 to make /hilight -mask -line work properly
Diffstat (limited to 'src/fe-common/core/hilight-text.c')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 9822de1e..2c0075ec 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -325,11 +325,10 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text, if (dest->level & MSGLEVEL_NOHILIGHT) return; - hilight_start = hilight_end = 0; - hilight = hilight_match(dest->server, dest->target, - NULL, NULL, dest->level, stripped, - &hilight_start, - &hilight_end); + hilight_start = dest->match_beg; + hilight_end = dest->match_end; + hilight = dest->hilight; + if (hilight == NULL) return; |