mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
updated for version 7.3.260
Problem: CursorHold triggers on an incomplete mapping. (Will Gray) Solution: Don't trigger CursorHold when there is typeahead.
This commit is contained in:
@@ -9044,7 +9044,10 @@ trigger_cursorhold()
|
|||||||
{
|
{
|
||||||
int state;
|
int state;
|
||||||
|
|
||||||
if (!did_cursorhold && has_cursorhold() && !Recording
|
if (!did_cursorhold
|
||||||
|
&& has_cursorhold()
|
||||||
|
&& !Recording
|
||||||
|
&& typebuf.tb_len == 0
|
||||||
#ifdef FEAT_INS_EXPAND
|
#ifdef FEAT_INS_EXPAND
|
||||||
&& !ins_compl_active()
|
&& !ins_compl_active()
|
||||||
#endif
|
#endif
|
||||||
@@ -9935,6 +9938,8 @@ match_file_pat(pattern, prog, fname, sfname, tail, allow_dirs)
|
|||||||
if ((c == ';' || c == '>') && match == FALSE)
|
if ((c == ';' || c == '>') && match == FALSE)
|
||||||
{
|
{
|
||||||
*pattern = NUL; /* Terminate the string */
|
*pattern = NUL; /* Terminate the string */
|
||||||
|
/* TODO: match with 'filetype' of buffer that "fname" comes
|
||||||
|
* from. */
|
||||||
match = mch_check_filetype(fname, type_start);
|
match = mch_check_filetype(fname, type_start);
|
||||||
*pattern = c; /* Restore the terminator */
|
*pattern = c; /* Restore the terminator */
|
||||||
type_start = pattern + 1;
|
type_start = pattern + 1;
|
||||||
|
@@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
260,
|
||||||
/**/
|
/**/
|
||||||
259,
|
259,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user