0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

updated for version 7.3.944

Problem:    External program receives the termrespone.
Solution:   Insert a delay and discard input. (Hayaki Saito)
This commit is contained in:
Bram Moolenaar
2013-05-13 20:26:53 +02:00
parent bd80f35bc5
commit 29607acff6
2 changed files with 14 additions and 2 deletions

View File

@@ -3253,9 +3253,19 @@ stoptermcap()
if (!gui.in_use && !gui.starting)
# endif
{
/* May need to check for T_CRV response. */
/* May need to discard T_CRV or T_U7 response. */
if (crv_status == CRV_SENT || u7_status == U7_SENT)
(void)vpeekc_nomap();
{
# ifdef UNIX
/* Give the terminal a chance to respond. */
mch_delay(100L, FALSE);
# endif
# ifdef TCIFLUSH
/* Discard data received but not read. */
if (exiting)
tcflush(fileno(stdin), TCIFLUSH);
# endif
}
/* Check for termcodes first, otherwise an external program may
* get them. */
check_for_codes_from_term();

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
944,
/**/
943,
/**/