0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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:
Bram Moolenaar
2011-08-28 16:02:28 +02:00
parent 9dc93ae43e
commit 03aa60826e
2 changed files with 11 additions and 0 deletions

View File

@@ -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