mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +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
|
|
@ -576,16 +576,13 @@ GList *textbuffer_find_text(TEXT_BUFFER_REC *buffer, LINE_REC *startline,
|
|||
(line->info.level & nolevel) == 0;
|
||||
|
||||
if (*text != '\0') {
|
||||
const char *tmp = NULL;
|
||||
textbuffer_line2text(line, FALSE, str);
|
||||
|
||||
if (line_matched) {
|
||||
line_matched = regexp ?
|
||||
i_regex_match(preg, str->str, 0, NULL, &tmp)
|
||||
i_regex_match(preg, str->str, 0, NULL)
|
||||
: match_func(str->str, text) != NULL;
|
||||
}
|
||||
if (tmp && tmp != str->str)
|
||||
g_free_not_null((char *)tmp);
|
||||
}
|
||||
|
||||
if (line_matched) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue