diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-29 21:55:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-29 21:55:22 +0000 |
commit | d8fc5c0b999204f47efd7702502b41ead11948a4 (patch) | |
tree | 35c332fe05654b768a8126fc3de893eef95eac2c /src/normal.c | |
parent | 8ea9123258804d6199c79789af295bb3ca3db296 (diff) | |
download | vim-git-d8fc5c0b999204f47efd7702502b41ead11948a4.tar.gz |
updated for version 7.0f05
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/normal.c b/src/normal.c index 966bb3219..db6c66a59 100644 --- a/src/normal.c +++ b/src/normal.c @@ -648,23 +648,13 @@ normal_cmd(oap, toplevel) && VIsual_select && (vim_isprintc(c) || c == NL || c == CAR || c == K_KENTER)) { -# ifdef FEAT_MBYTE - char_u buf[MB_MAXBYTES + 1]; - - buf[(*mb_char2bytes)(c, buf)] = NUL; -# else - char_u buf[2]; - - buf[0] = c; - buf[1] = NUL; -# endif /* Fake a "c"hange command. When "restart_edit" is set (e.g., because * 'insertmode' is set) fake a "d"elete command, Insert mode will * restart automatically. * Insert the typed character in the typeahead buffer, so that it will * be mapped in Insert mode. Required for ":lmap" to work. May cause * mapping a character from ":vnoremap"... */ - (void)ins_typebuf(buf, REMAP_YES, 0, !KeyTyped, FALSE); + ins_char_typebuf(c); if (restart_edit != 0) c = 'd'; else |