Problem: CursorHold triggers on an incomplete mapping. (Will Gray)
Solution: Don't trigger CursorHold when there is typeahead.
{
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
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;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 260,
/**/
259,
/**/