updated for version 7.4.601
Problem: It is not possible to have feedkeys() insert characters.
Solution: Add the 'i' flag.
diff --git a/src/eval.c b/src/eval.c
index 242a1f8..c9c179a 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -10500,6 +10500,7 @@
typval_T *rettv UNUSED;
{
int remap = TRUE;
+ int insert = FALSE;
char_u *keys, *flags;
char_u nbuf[NUMBUFLEN];
int typed = FALSE;
@@ -10524,6 +10525,7 @@
case 'n': remap = FALSE; break;
case 'm': remap = TRUE; break;
case 't': typed = TRUE; break;
+ case 'i': insert = TRUE; break;
}
}
}
@@ -10534,7 +10536,7 @@
if (keys_esc != NULL)
{
ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE),
- typebuf.tb_len, !typed, FALSE);
+ insert ? 0 : typebuf.tb_len, !typed, FALSE);
vim_free(keys_esc);
if (vgetc_busy)
typebuf_was_filled = TRUE;
diff --git a/src/version.c b/src/version.c
index 6b98aca..20291a7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 601,
+/**/
600,
/**/
599,