diff options
author | Bram Moolenaar <bram@vim.org> | 2013-04-05 19:50:17 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-04-05 19:50:17 +0200 |
commit | b6cbd08d82b0616ba9aca6321c164decdd4cd9d5 (patch) | |
tree | 304b5c7d8f80964e9f8066ec15c652b31620693f | |
parent | 42454cf6fed8e0f089b37c710fcd7a946b71ba82 (diff) | |
download | vim-b6cbd08d82b0616ba9aca6321c164decdd4cd9d5.tar.gz |
Problem: CursorHold may trigger after receiving the termresponse.
Solution: Set the did_cursorhold flag. (Hayaki Saito)
-rw-r--r-- | src/term.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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 4d056c64..b24748a9 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 882, +/**/ 881, /**/ 880, |