diff options
author | Bram Moolenaar <bram@vim.org> | 2013-05-21 12:46:02 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-05-21 12:46:02 +0200 |
commit | 9d32defdbe4cd699882cc24dc97cd6e73271dddb (patch) | |
tree | ac8549591e037ce4e833c79db9fed0de50242f60 | |
parent | 4f339469042c6bdc26511cb071a13dc7170da8d7 (diff) | |
download | vim-9d32defdbe4cd699882cc24dc97cd6e73271dddb.tar.gz |
Problem: A Visual mapping that uses CTRL-G works differently when started
from Insert mode. (Ein Brown)
Solution: Reset old_mapped_len when handling typed text in Select mode.
-rw-r--r-- | src/normal.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index 339b7205..b16ac872 100644 --- a/src/normal.c +++ b/src/normal.c @@ -701,6 +701,7 @@ normal_cmd(oap, toplevel) else c = 'c'; msg_nowait = TRUE; /* don't delay going to insert mode */ + old_mapped_len = 0; /* do go to Insert mode */ } #endif diff --git a/src/version.c b/src/version.c index 2e685dcc..52d9e719 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 984, +/**/ 983, /**/ 982, |