Fix obvious mistake, thanks Michael (bug #3215)
authorColin Leroy <colin@colino.net>
Tue, 17 Jun 2014 20:29:08 +0000 (22:29 +0200)
committerColin Leroy <colin@colino.net>
Tue, 17 Jun 2014 20:29:08 +0000 (22:29 +0200)
src/addr_compl.c

index 21348ab..c6a1795 100644 (file)
@@ -205,7 +205,7 @@ static gint weight_addr_match(const address_entry* addr)
                        else
                                a_weight = match - addr->address;
 
                        else
                                a_weight = match - addr->address;
 
-                       if (strlen(match) < strlen(g_completion_prefix)
+                       if (strlen(match) > strlen(g_completion_prefix)
                         && *(match + strlen(g_completion_prefix)) == '@')
                                a_weight--;
                }
                         && *(match + strlen(g_completion_prefix)) == '@')
                                a_weight--;
                }