diff src/edit.c @ 1698:f4f8014d516e v7.2c.000

updated for version 7.2c-000
author vimboss
date Wed, 06 Aug 2008 17:06:04 +0000
parents 149d8b46404c
children 12cecc379574
line wrap: on
line diff
--- 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;