mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
get rid of new_text
This commit is contained in:
parent
48899a123d
commit
4edfccfce7
6 changed files with 50 additions and 40 deletions
|
|
@ -197,15 +197,12 @@ static gboolean hilight_match_text(HILIGHT_REC *rec, const char *text,
|
|||
if (rec->regexp) {
|
||||
if (rec->preg != NULL) {
|
||||
MatchInfo *match;
|
||||
const char *new_text = NULL;
|
||||
|
||||
i_regex_match(rec->preg, text, 0, &match, &new_text);
|
||||
i_regex_match(rec->preg, text, 0, &match);
|
||||
|
||||
if (i_match_info_matches(match))
|
||||
ret = i_match_info_fetch_pos(match, 0, match_beg, match_end, new_text);
|
||||
ret = i_match_info_fetch_pos(match, 0, match_beg, match_end);
|
||||
|
||||
i_match_info_free(match);
|
||||
g_free_not_null((char *)new_text);
|
||||
}
|
||||
} else {
|
||||
char *match;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue