aboutsummaryrefslogtreecommitdiff
path: root/src/addr_compl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/addr_compl.c')
-rw-r--r--src/addr_compl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/addr_compl.c b/src/addr_compl.c
index bc2e4817..0cdfb2e3 100644
--- a/src/addr_compl.c
+++ b/src/addr_compl.c
@@ -778,8 +778,13 @@ static gboolean address_completion_complete_address_in_entry(GtkEntry *entry,
if (new) {
/* prevent "change" signal */
/* replace_address_in_edit(entry, new, cursor_pos); */
+
+ /* don't complete if entry equals to the completed address */
+ if (ncount == 2 && !strcmp(address, new))
+ completed = FALSE;
+ else
+ completed = TRUE;
g_free(new);
- completed = TRUE;
}
g_free(address);