summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index e04c720a1..714d32099 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3608,8 +3608,6 @@ ins_compl_prep(c)
inc_cursor();
}
- auto_format(FALSE, TRUE);
-
/* If the popup menu is displayed pressing CTRL-Y means accepting
* the selection without inserting anything. When
* compl_enter_selects is set the Enter key does the same. */
@@ -3630,6 +3628,8 @@ ins_compl_prep(c)
retval = TRUE;
}
+ auto_format(FALSE, TRUE);
+
ins_compl_free();
compl_started = FALSE;
compl_matches = 0;