From: Colin Leroy Date: Tue, 17 Jun 2014 20:29:08 +0000 (+0200) Subject: Fix obvious mistake, thanks Michael (bug #3215) X-Git-Tag: 3.11.0~102 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=93ffffab990f8e21541ac13aec7e58a1b44b27b8;ds=sidebyside Fix obvious mistake, thanks Michael (bug #3215) --- 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--; }