summaryrefslogtreecommitdiff
path: root/gtk/gtkemojichooser.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-08-13 07:49:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-08-13 07:51:33 -0400
commitfd4fa7be290c6aa5f2a02850d24330ce65f1a9b3 (patch)
tree1e17ca56132bdba36b2c2036c6a82c21a4cf75ba /gtk/gtkemojichooser.c
parent50453d44bca6cbdd89cae4633c7ddff9fdf091b5 (diff)
downloadgtk+-fd4fa7be290c6aa5f2a02850d24330ce65f1a9b3.tar.gz
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.
Diffstat (limited to 'gtk/gtkemojichooser.c')
-rw-r--r--gtk/gtkemojichooser.c2
1 files changed, 1 insertions, 1 deletions
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)