From 97c1775646b87e7127a93daa13aab3d09e8e4b88 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 29 Aug 2019 23:25:16 -0400 Subject: vim-patch:8.1.0233: "safe" argument of call_vim_function() is always FALSE Problem: "safe" argument of call_vim_function() is always FALSE. Solution: Remove the argument. https://github.com/vim/vim/commit/ded27a1febda3db7447958b60a7d791af514d124 --- src/nvim/edit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/nvim/edit.c') diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 1d795621e5..ca64cc091d 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -3722,7 +3722,7 @@ expand_by_function( curbuf_save = curbuf; // Call a function, which returns a list or dict. - if (call_vim_function(funcname, 2, args, &rettv, false) == OK) { + if (call_vim_function(funcname, 2, args, &rettv) == OK) { switch (rettv.v_type) { case VAR_LIST: matchlist = rettv.vval.v_list; @@ -4913,7 +4913,6 @@ static int ins_complete(int c, bool enable_pum) * Call user defined function 'completefunc' with "a:findstart" * set to 1 to obtain the length of text to use for completion. */ - int col; char_u *funcname; pos_T pos; win_T *curwin_save; @@ -4942,7 +4941,7 @@ static int ins_complete(int c, bool enable_pum) pos = curwin->w_cursor; curwin_save = curwin; curbuf_save = curbuf; - col = call_func_retnr(funcname, 2, args, false); + int col = call_func_retnr(funcname, 2, args); State = save_State; if (curwin_save != curwin || curbuf_save != curbuf) { -- cgit