mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Added case-sensitive regexp matching for hilights
This commit is contained in:
parent
ddd5416430
commit
e7a18759ec
@ -122,8 +122,11 @@ static void hilight_init_rec(HILIGHT_REC *rec)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_REGEX_H
|
#ifdef HAVE_REGEX_H
|
||||||
if (rec->regexp_compiled) regfree(&rec->preg);
|
if (rec->regexp_compiled) regfree(&rec->preg);
|
||||||
rec->regexp_compiled = !rec->regexp ? FALSE :
|
if (!rec->regexp)
|
||||||
regcomp(&rec->preg, rec->text, REG_EXTENDED|REG_ICASE) == 0;
|
rec->regexp_compiled = FALSE;
|
||||||
|
else
|
||||||
|
rec->regexp_compiled = regcomp(&rec->preg, rec->text,
|
||||||
|
rec->case_sensitive ? REG_EXTENDED : (REG_EXTENDED|REG_ICASE)) == 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user