1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

/LAST -before didn't print the separators.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2446 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-15 09:22:35 +00:00 committed by cras
parent fcc61f2382
commit 6eaf161199

View File

@ -518,7 +518,8 @@ GList *textbuffer_find_text(TEXT_BUFFER_REC *buffer, LINE_REC *startline,
textbuffer_line_ref(line);
matches = g_list_append(matches, line);
if (!line_matched && --match_after == 0)
if ((!line_matched && --match_after == 0) ||
(line_matched && match_after == 0 && before > 0))
matches = g_list_append(matches, NULL);
}
}