From 93ffffab990f8e21541ac13aec7e58a1b44b27b8 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Tue, 17 Jun 2014 22:29:08 +0200 Subject: [PATCH] Fix obvious mistake, thanks Michael (bug #3215) --- src/addr_compl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addr_compl.c b/src/addr_compl.c index 21348ab4f..c6a179505 100644 --- 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--; } -- 2.25.1