summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2011-07-20 18:29:39 +0200
committerBram Moolenaar <bram@vim.org>2011-07-20 18:29:39 +0200
commit49835dfa689e03b17ab5da01efa2e199831faeae (patch)
tree7f2c7463cabf9f0e40ddb7ed488544ca0e2b3444
parent3e4f4588fe0d494c2435056973058b1e8e976915 (diff)
downloadvim-49835dfa689e03b17ab5da01efa2e199831faeae.tar.gz
updated for version 7.3.260v7.3.260v7-3-260
Problem: CursorHold triggers on an incomplete mapping. (Will Gray) Solution: Don't trigger CursorHold when there is typeahead.
-rw-r--r--src/fileio.c7
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 6355c791..41132878 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -9044,7 +9044,10 @@ trigger_cursorhold()
{
int state;
- if (!did_cursorhold && has_cursorhold() && !Recording
+ if (!did_cursorhold
+ && has_cursorhold()
+ && !Recording
+ && typebuf.tb_len == 0
#ifdef FEAT_INS_EXPAND
&& !ins_compl_active()
#endif
@@ -9935,6 +9938,8 @@ match_file_pat(pattern, prog, fname, sfname, tail, allow_dirs)
if ((c == ';' || c == '>') && match == FALSE)
{
*pattern = NUL; /* Terminate the string */
+ /* TODO: match with 'filetype' of buffer that "fname" comes
+ * from. */
match = mch_check_filetype(fname, type_start);
*pattern = c; /* Restore the terminator */
type_start = pattern + 1;
diff --git a/src/version.c b/src/version.c
index 7359e14b..a254af0e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 260,
+/**/
259,
/**/
258,