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:
@@ -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
|
||||
|
Reference in New Issue
Block a user