forked from aniani/vim
patch 8.1.1319: computing function length name in many places
Problem: Computing function length name in many places. Solution: compute name length in call_func().
This commit is contained in:
@@ -3779,7 +3779,7 @@ handle_call_command(term_T *term, channel_T *channel, listitem_T *item)
|
||||
argvars[0].v_type = VAR_NUMBER;
|
||||
argvars[0].vval.v_number = term->tl_buffer->b_fnum;
|
||||
argvars[1] = item->li_next->li_tv;
|
||||
if (call_func(func, (int)STRLEN(func), &rettv,
|
||||
if (call_func(func, -1, &rettv,
|
||||
2, argvars, /* argv_func */ NULL,
|
||||
/* firstline */ 1, /* lastline */ 1,
|
||||
&doesrange, /* evaluate */ TRUE,
|
||||
|
||||
Reference in New Issue
Block a user