commit 93ffffab990f8e21541ac13aec7e58a1b44b27b8
parent 4dbe7a8759f8928986bd00a0ea635c5c18954651
Author: Colin Leroy <colin@colino.net>
Date: Tue, 17 Jun 2014 22:29:08 +0200
Fix obvious mistake, thanks Michael (bug #3215)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/addr_compl.c b/src/addr_compl.c
@@ -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--;
}