get rid of new_text

This commit is contained in:
ailin-nemui 2017-06-05 11:41:50 +02:00
commit 4edfccfce7
6 changed files with 50 additions and 40 deletions

View file

@ -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) {