mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.4.143
Problem: TextChangedI is not triggered. Solution: Reverse check for "ready". (lilydjwg)
This commit is contained in:
10
src/edit.c
10
src/edit.c
@@ -1556,8 +1556,9 @@ ins_redraw(ready)
|
|||||||
int conceal_update_lines = FALSE;
|
int conceal_update_lines = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!char_avail())
|
if (char_avail())
|
||||||
{
|
return;
|
||||||
|
|
||||||
#if defined(FEAT_AUTOCMD) || defined(FEAT_CONCEAL)
|
#if defined(FEAT_AUTOCMD) || defined(FEAT_CONCEAL)
|
||||||
/* Trigger CursorMoved if the cursor moved. Not when the popup menu is
|
/* Trigger CursorMoved if the cursor moved. Not when the popup menu is
|
||||||
* visible, the command might delete it. */
|
* visible, the command might delete it. */
|
||||||
@@ -1601,9 +1602,10 @@ ins_redraw(ready)
|
|||||||
last_cursormoved = curwin->w_cursor;
|
last_cursormoved = curwin->w_cursor;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
/* Trigger TextChangedI if b_changedtick differs. */
|
/* Trigger TextChangedI if b_changedtick differs. */
|
||||||
if (!ready && has_textchangedI()
|
if (ready && has_textchangedI()
|
||||||
&& last_changedtick != curbuf->b_changedtick
|
&& last_changedtick != curbuf->b_changedtick
|
||||||
# ifdef FEAT_INS_EXPAND
|
# ifdef FEAT_INS_EXPAND
|
||||||
&& !pum_visible()
|
&& !pum_visible()
|
||||||
@@ -1616,6 +1618,7 @@ ins_redraw(ready)
|
|||||||
last_changedtick = curbuf->b_changedtick;
|
last_changedtick = curbuf->b_changedtick;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (must_redraw)
|
if (must_redraw)
|
||||||
update_screen(0);
|
update_screen(0);
|
||||||
else if (clear_cmdline || redraw_cmdline)
|
else if (clear_cmdline || redraw_cmdline)
|
||||||
@@ -1637,7 +1640,6 @@ ins_redraw(ready)
|
|||||||
setcursor();
|
setcursor();
|
||||||
emsg_on_display = FALSE; /* may remove error message now */
|
emsg_on_display = FALSE; /* may remove error message now */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle a CTRL-V or CTRL-Q typed in Insert mode.
|
* Handle a CTRL-V or CTRL-Q typed in Insert mode.
|
||||||
|
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
143,
|
||||||
/**/
|
/**/
|
||||||
142,
|
142,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user