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

window_text_find() didn't work correctly with empty find string.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@897 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-30 01:13:34 +00:00 committed by cras
parent 1ca99a108c
commit 1d48bc59ac

View File

@ -762,6 +762,11 @@ GList *gui_window_find_text(WINDOW_REC *window, gchar *text, GList *startline, i
{
LINE_REC *rec = tmp->data;
if (*text == '\0') {
matches = g_list_append(matches, rec);
continue;
}
for (n = 0, ptr = rec->text; ; ptr++)
{
if (*ptr != 0)