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 | 68879258d98853deb928a8ce93b497d39ce65296 (patch) | |
tree | f39b7cc9bb2cb4e9990d9858f42209ed3f8db333 /src/term.c | |
parent | 24b11fb1730e37a4aa71434c130301a9369c835f (diff) | |
download | vim-git-68879258d98853deb928a8ce93b497d39ce65296.tar.gz |
updated for version 7.3.882v7.3.882
Problem: CursorHold may trigger after receiving the termresponse.
Solution: Set the did_cursorhold flag. (Hayaki Saito)
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |