Fix obvious mistake, thanks Michael (bug #3215)
[claws.git] / src / addr_compl.c
index 21348ab4fa72881047fc5b077bf88343eb11f452..c6a1795054fa729a1f0044a774ce17fa4d848bed 100644 (file)
@@ -205,7 +205,7 @@ static gint weight_addr_match(const address_entry* addr)
                        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--;
                }