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 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--;
                }