summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r--src/fe-text/gui-windows.c5
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)