1
0
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:
Bram Moolenaar
2019-05-11 18:37:44 +02:00
parent ec28d1516e
commit 6ed8819822
8 changed files with 47 additions and 44 deletions

View File

@@ -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,