summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-08-28 16:02:28 +0200
committerBram Moolenaar <Bram@vim.org>2011-08-28 16:02:28 +0200
commit03aa60826e0a4ccfb69a1de3ddd101fd371a3db1 (patch)
tree64862cdc36aed5dba70c18b110c3a512fe6b74c8 /src/edit.c
parent9dc93ae43e392d0de3cb3b2a0080c4dd29995c26 (diff)
downloadvim-git-03aa60826e0a4ccfb69a1de3ddd101fd371a3db1.tar.gz
updated for version 7.3.289v7.3.289
Problem: Complete function isn't called when the leader changed. Solution: Call ins_compl_restart() when the leader changed. (Taro Muraoka)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c9
1 files changed, 9 insertions, 0 deletions
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