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.
This commit is contained in:
Matthias Clasen 2017-08-13 07:49:13 -04:00
parent 50453d44bc
commit fd4fa7be29

View File

@ -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)