Mercurial > vim
changeset 6087:dbd7dc1ea2e6 v7.4.382
updated for version 7.4.382
Problem: Mapping characters may not work after typing Esc in Insert mode.
Solution: Fix the noremap flags for inserted characters. (Jacob Niehus)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 23 Jul 2014 20:41:14 +0200 |
parents | 93c657c30384 |
children | 6baa86fc1060 |
files | src/getchar.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/getchar.c +++ b/src/getchar.c @@ -2731,6 +2731,11 @@ vgetorpeek(advance) } if (c < 0) continue; /* end of input script reached */ + + /* Allow mapping for just typed characters. When we get here c + * is the number of extra bytes and typebuf.tb_len is 1. */ + for (n = 1; n <= c; ++n) + typebuf.tb_noremap[typebuf.tb_off + n] = RM_YES; typebuf.tb_len += c; /* buffer full, don't map */