[gnome-software/1320-two-letter-search-doesn-t-have-any-effect] gs-shell: Allow two-letters search



commit ba44fd7115e1f84d0a6ce948cf20dc688850675c
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jul 15 12:15:54 2021 +0200

    gs-shell: Allow two-letters search
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1320

 src/gs-shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 15d06a5b6..ba9a8fe01 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -915,7 +915,7 @@ search_changed_handler (GObject *entry, GsShell *shell)
        const gchar *text;
 
        text = gtk_entry_get_text (GTK_ENTRY (entry));
-       if (strlen (text) > 2) {
+       if (strlen (text) >= 2) {
                if (gs_shell_get_mode (shell) != GS_SHELL_MODE_SEARCH) {
                        save_back_entry (shell);
                        gs_shell_change_mode (shell, GS_SHELL_MODE_SEARCH,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]