changeset 8489:76b9c2305531 v7.4.1535

commit https://github.com/vim/vim/commit/9e496854a9fe56699687a4f86003fad115b3b375 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 11 19:31:47 2016 +0100 patch 7.4.1535 Problem: The feedkeys test has a one second delay. Solution: Avoid need_wait_return() to delay. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Mar 2016 19:45:04 +0100
parents 8970a0216d06
children eceb3c28e179
files src/eval.c src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -11869,7 +11869,14 @@ f_feedkeys(typval_T *argvars, typval_T *
 	    if (vgetc_busy)
 		typebuf_was_filled = TRUE;
 	    if (execute)
+	    {
+		int save_msg_scroll = msg_scroll;
+
+		/* Avoid a 1 second delay when the keys start Insert mode. */
+		msg_scroll = FALSE;
 		exec_normal(TRUE);
+		msg_scroll |= save_msg_scroll;
+	    }
 	}
     }
 }
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1535,
+/**/
     1534,
 /**/
     1533,