summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-09-14 16:52:09 +0200
committerBram Moolenaar <Bram@vim.org>2011-09-14 16:52:09 +0200
commit821390843b9f1605d8bc8394eaaf0aae4c051e68 (patch)
tree7ac0cd0988bf01812825ea9233b7814ea27140f0 /src/eval.c
parent15d6319b9d8d61ea9c50ea81d135d994354010b2 (diff)
updated for version 7.3.311v7.3.311
Problem: Complete function isn't called when the leader changed. Solution: Allow the complete function to return a dictionary with a flag that indicates ins_compl_restart() is to be called when the leader changes. (Taro Muraoka)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/eval.c b/src/eval.c
index f66fb1b57e..6e8c26f4a7 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -380,9 +380,6 @@ static dictitem_T vimvars_var;
static void prepare_vimvar __ARGS((int idx, typval_T *save_tv));
static void restore_vimvar __ARGS((int idx, typval_T *save_tv));
-#if defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)
-static int call_vim_function __ARGS((char_u *func, int argc, char_u **argv, int safe, typval_T *rettv));
-#endif
static int ex_let_vars __ARGS((char_u *arg, typval_T *tv, int copy, int semicolon, int var_count, char_u *nextchars));
static char_u *skip_var_list __ARGS((char_u *arg, int *var_count, int *semicolon));
static char_u *skip_var_one __ARGS((char_u *arg));
@@ -451,7 +448,6 @@ static void set_ref_in_ht __ARGS((hashtab_T *ht, int copyID));
static void set_ref_in_list __ARGS((list_T *l, int copyID));
static void set_ref_in_item __ARGS((typval_T *tv, int copyID));
static int rettv_dict_alloc __ARGS((typval_T *rettv));
-static void dict_unref __ARGS((dict_T *d));
static void dict_free __ARGS((dict_T *d, int recurse));
static dictitem_T *dictitem_copy __ARGS((dictitem_T *org));
static void dictitem_remove __ARGS((dict_T *dict, dictitem_T *item));
@@ -1563,7 +1559,7 @@ eval_expr(arg, nextcmd)
* arguments are currently supported.
* Returns OK or FAIL.
*/
- static int
+ int
call_vim_function(func, argc, argv, safe, rettv)
char_u *func;
int argc;
@@ -6903,7 +6899,7 @@ rettv_dict_alloc(rettv)
* Unreference a Dictionary: decrement the reference count and free it when it
* becomes zero.
*/
- static void
+ void
dict_unref(d)
dict_T *d;
{