mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05: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:
parent
1ca99a108c
commit
1d48bc59ac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user