diff options
author | Timo Sirainen <cras@irssi.org> | 2000-11-30 01:13:34 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-11-30 01:13:34 +0000 |
commit | 1d48bc59ac140fae3a868d8470933feefa9d41bd (patch) | |
tree | 2896fa7126bc1049f8f6aa3be6427aa92bd2f0fb /src | |
parent | 1ca99a108caacc74cb9fc358217e2941da1208c6 (diff) | |
download | irssi-1d48bc59ac140fae3a868d8470933feefa9d41bd.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-windows.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 94333620..10247796 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -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) |