mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Rebase against master.
This commit is contained in:
parent
3fcd3cd2b9
commit
5eaead761f
@ -66,8 +66,10 @@ static int ignore_match_pattern(IGNORE_REC *rec, const char *text)
|
||||
if (text == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (rec->regexp)
|
||||
return rec->preg && g_regex_match(rec->preg, text, 0, NULL);
|
||||
if (rec->regexp) {
|
||||
return rec->preg != NULL &&
|
||||
g_regex_match(rec->preg, text, 0, NULL);
|
||||
}
|
||||
|
||||
return rec->fullword ?
|
||||
stristr_full(text, rec->pattern) != NULL :
|
||||
|
@ -570,7 +570,7 @@ GList *textbuffer_find_text(TEXT_BUFFER_REC *buffer, LINE_REC *startline,
|
||||
textbuffer_line2text(line, FALSE, str);
|
||||
|
||||
if (line_matched) {
|
||||
line_matched = regexp ?
|
||||
line_matched = regexp ?
|
||||
g_regex_match(preg, str->str, 0, NULL) :
|
||||
match_func(str->str, text) != NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user