aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-30 07:42:57 +0200
committerGitHub <noreply@github.com>2019-08-30 07:42:57 +0200
commit56e570f8af263aeefe2b6dc121c4a88c347a6e9c (patch)
tree1d6840820ff7a9ef9b6bc5f31705c7025eae5b30 /src/nvim/edit.c
parent7732976918d34d34d8fdb9c9829032cb43062740 (diff)
parent97c1775646b87e7127a93daa13aab3d09e8e4b88 (diff)
downloadrneovim-56e570f8af263aeefe2b6dc121c4a88c347a6e9c.tar.gz
rneovim-56e570f8af263aeefe2b6dc121c4a88c347a6e9c.tar.bz2
rneovim-56e570f8af263aeefe2b6dc121c4a88c347a6e9c.zip
Merge #10886 from janlazo/vim-8.1.1938
vim-patch:8.1.{233,1938}
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c5
1 files changed, 2 insertions, 3 deletions
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) {