From fd4fa7be290c6aa5f2a02850d24330ce65f1a9b3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 13 Aug 2017 07:49:13 -0400 Subject: [PATCH] emoji: Start search on the first character There is no need to wait for a longer prefix here. We already display all the content anyway, it will only get less. --- gtk/gtkemojichooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index a26e7dc7fe..be12a5f782 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -381,7 +381,7 @@ filter_func (GtkFlowBoxChild *child, text = gtk_entry_get_text (GTK_ENTRY (chooser->search_entry)); emoji_data = (GVariant *) g_object_get_data (G_OBJECT (child), "emoji-data"); - if (text[0] == 0 || text[1] == 0) + if (text[0] == 0) goto out; if (!emoji_data)