diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-10-03 13:36:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-10-03 13:36:13 +0000 |
commit | d9dfd57f4a13e92417a32be419a0f1d2656d62dd (patch) | |
tree | 0a7b6d8f3bd56dd5b5482c86ade7143a215d9e24 /src/getchar.c | |
parent | 132283f943df785d6c4ea89317250fa13bea0315 (diff) |
updated for version 7.0-114v7.0.114
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/getchar.c b/src/getchar.c index f840e0bd4b..e623ce666c 100644 --- 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; |