summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-05 22:16:17 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-05 22:16:17 +0000
commit1280586e4b3b88e2ce0e9a66c49950b0768fa3a9 (patch)
tree7d29948f64769942ecd5c50fd80d9fa1d41ae5fa /src/edit.c
parent06fb435a1c43a1ba114370bc59d8362830885513 (diff)
downloadvim-1280586e4b3b88e2ce0e9a66c49950b0768fa3a9.zip
updated for version 7.0031
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 15812c7ff..9b3f442e5 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -6236,9 +6236,11 @@ ins_esc(count, cmdchar)
{
/*
* Don't append the ESC for "r<CR>" and "grx".
+ * When 'insertmode' is set only CTRL-L stops Insert mode. Needed for
+ * when "count" is non-zero.
*/
if (cmdchar != 'r' && cmdchar != 'v')
- AppendToRedobuff(ESC_STR);
+ AppendToRedobuff(p_im ? (char_u *)"\014" : ESC_STR);
/*
* Repeating insert may take a long time. Check for