diff src/ex_getln.c @ 606:aa08661abaf7

updated for version 7.0172
author vimboss
date Sat, 17 Dec 2005 22:06:52 +0000
parents e4c00ec07598
children 53114ef7778f
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1098,21 +1098,22 @@ getcmdline(firstc, count, indent)
 			save_cmdline(&save_ccline);
 			c = get_expr_register();
 			restore_cmdline(&save_ccline);
-
-			/* When there was a serious error abort getting the
-			 * command line. */
-			if (aborting())
-			{
-			    gotesc = TRUE;  /* will free ccline.cmdbuff after
-					       putting it in history */
-			    goto returncmd; /* back to cmd mode */
-			}
 		    }
 		}
 #endif
 		if (c != ESC)	    /* use ESC to cancel inserting register */
 		{
 		    cmdline_paste(c, i == Ctrl_R);
+
+		    /* When there was a serious error abort getting the
+		     * command line. */
+		    if (aborting())
+		    {
+			gotesc = TRUE;  /* will free ccline.cmdbuff after
+					   putting it in history */
+			goto returncmd; /* back to cmd mode */
+		    }
+
 		    KeyTyped = FALSE;	/* Don't do p_wc completion. */
 #ifdef FEAT_EVAL
 		    if (new_cmdpos >= 0)