vim-patch:7.4.1535 (#5327)

Problem:    The feedkeys test has a one second delay.
Solution:   Avoid need_wait_return() to delay. (Hirohito Higashi)

9e496854a9
This commit is contained in:
davix 2016-09-11 21:16:36 +08:00 committed by Justin M. Keyes
parent c4c2969624
commit 13db9236fe
2 changed files with 6 additions and 1 deletions

View File

@ -92,7 +92,12 @@ void nvim_feedkeys(String keys, String mode, Boolean escape_csi)
typebuf_was_filled = true; typebuf_was_filled = true;
} }
if (execute) { 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); exec_normal(true);
msg_scroll |= save_msg_scroll;
} }
} }

View File

@ -743,7 +743,7 @@ static int included_patches[] = {
// 1538 NA // 1538 NA
// 1537 NA // 1537 NA
// 1536 NA // 1536 NA
// 1535, 1535,
// 1534 NA // 1534 NA
1533, 1533,
// 1532 NA // 1532 NA