From 053344363899f7d5ad6b8ae38abce4c81336e2e9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 20 Jul 2011 18:29:39 +0200 Subject: updated for version 7.3.260 Problem: CursorHold triggers on an incomplete mapping. (Will Gray) Solution: Don't trigger CursorHold when there is typeahead. --- src/fileio.c | 7 ++++++- src/version.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 6355c7911..411328787 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 7359e14b2..a254af0e6 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 260, /**/ 259, /**/ -- cgit v1.2.1