diff src/getchar.c @ 988:cec8b867838b v7.0.114

updated for version 7.0-114
author vimboss
date Tue, 03 Oct 2006 13:36:13 +0000
parents e88950f0d4f6
children e14d0a530351
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1960,10 +1960,13 @@ vgetorpeek(advance)
 			c = Ctrl_C;
 		    flush_buffers(TRUE);	/* flush all typeahead */
 
-		    /* Also record this character, it might be needed to
-		     * get out of Insert mode. */
-		    *typebuf.tb_buf = c;
-		    gotchars(typebuf.tb_buf, 1);
+		    if (advance)
+		    {
+			/* Also record this character, it might be needed to
+			 * get out of Insert mode. */
+			*typebuf.tb_buf = c;
+			gotchars(typebuf.tb_buf, 1);
+		    }
 		    cmd_silent = FALSE;
 
 		    break;