From 68879258d98853deb928a8ce93b497d39ce65296 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 5 Apr 2013 19:50:17 +0200 Subject: [PATCH] updated for version 7.3.882 Problem: CursorHold may trigger after receiving the termresponse. Solution: Set the did_cursorhold flag. (Hayaki Saito) --- src/term.c | 6 ++++++ src/version.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/term.c b/src/term.c index a63dff37d..438c15940 100644 --- a/src/term.c +++ b/src/term.c @@ -4137,6 +4137,9 @@ check_termcode(max_offset, buf, bufsize, buflen) char *p = NULL; u7_status = U7_GOT; +# ifdef FEAT_AUTOCMD + did_cursorhold = TRUE; +# endif if (extra == 2) p = "single"; 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') { crv_status = CRV_GOT; +# ifdef FEAT_AUTOCMD + did_cursorhold = TRUE; +# endif /* If this code starts with CSI, you can bet that the * terminal uses 8-bit codes. */ diff --git a/src/version.c b/src/version.c index 4d056c640..b24748a9b 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 882, /**/ 881, /**/