From c31327b279c7205ab4c4756708a41081e9968858 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Tue, 5 Nov 2019 09:41:47 -0800 Subject: [PATCH] If images are allowed and no display mode is given by the entry then text is used, this allows run to work correctly when images are shown --- src/wofi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index cc419cf..ddfdc15 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -93,6 +93,9 @@ static GtkWidget* create_label(char* mode, char* text, char* search_text, char* char* tmp = strdup(text); char* mode = NULL; + if(strchr(tmp, ':') == NULL) { + mode = "text"; + } char* save_ptr; char* str = strtok_r(tmp, ":", &save_ptr); do {