From: Bram Moolenaar Date: Sun, 28 Aug 2011 14:02:28 +0000 (+0200) Subject: updated for version 7.3.289 X-Git-Tag: v7.3.289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03aa60826e0a4ccfb69a1de3ddd101fd371a3db1;p=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) --- diff --git a/src/edit.c b/src/edit.c index 711bfccc9..c9cfca656 100644 --- a/src/edit.c +++ b/src/edit.c @@ -3367,6 +3367,15 @@ ins_compl_new_leader() ins_bytes(compl_leader + ins_compl_len()); 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) ins_compl_set_original_text(compl_leader); else diff --git a/src/version.c b/src/version.c index f3a32154e..925ff2477 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 */ +/**/ + 289, /**/ 288, /**/