1
0
forked from aniani/vim

updated for version 7.3.882

Problem:    CursorHold may trigger after receiving the termresponse.
Solution:   Set the did_cursorhold flag. (Hayaki Saito)
This commit is contained in:
Bram Moolenaar
2013-04-05 19:50:17 +02:00
parent 24b11fb173
commit 68879258d9
2 changed files with 8 additions and 0 deletions

View File

@@ -4137,6 +4137,9 @@ check_termcode(max_offset, buf, bufsize, buflen)
char *p = NULL; char *p = NULL;
u7_status = U7_GOT; u7_status = U7_GOT;
# ifdef FEAT_AUTOCMD
did_cursorhold = TRUE;
# endif
if (extra == 2) if (extra == 2)
p = "single"; p = "single";
else if (extra == 3) else if (extra == 3)
@@ -4153,6 +4156,9 @@ check_termcode(max_offset, buf, bufsize, buflen)
if (*T_CRV != NUL && i > 2 + (tp[0] != CSI) && tp[i] == 'c') if (*T_CRV != NUL && i > 2 + (tp[0] != CSI) && tp[i] == 'c')
{ {
crv_status = CRV_GOT; crv_status = CRV_GOT;
# ifdef FEAT_AUTOCMD
did_cursorhold = TRUE;
# endif
/* If this code starts with CSI, you can bet that the /* If this code starts with CSI, you can bet that the
* terminal uses 8-bit codes. */ * terminal uses 8-bit codes. */

View File

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