forked from aniani/vim
updated for version 7.3.289
Problem: Complete function isn't called when the leader changed. Solution: Call ins_compl_restart() when the leader changed. (Taro Muraoka)
This commit is contained in:
@@ -3367,6 +3367,15 @@ ins_compl_new_leader()
|
|||||||
ins_bytes(compl_leader + ins_compl_len());
|
ins_bytes(compl_leader + ins_compl_len());
|
||||||
compl_used_match = FALSE;
|
compl_used_match = FALSE;
|
||||||
|
|
||||||
|
#ifdef FEAT_COMPL_FUNC
|
||||||
|
/*
|
||||||
|
* To call eval 'completefunc' when leader is changed, restart completion
|
||||||
|
* every time.
|
||||||
|
*/
|
||||||
|
if (ctrl_x_mode == CTRL_X_FUNCTION || ctrl_x_mode == CTRL_X_OMNI)
|
||||||
|
ins_compl_restart();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (compl_started)
|
if (compl_started)
|
||||||
ins_compl_set_original_text(compl_leader);
|
ins_compl_set_original_text(compl_leader);
|
||||||
else
|
else
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
289,
|
||||||
/**/
|
/**/
|
||||||
288,
|
288,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user