1
0
forked from aniani/vim

patch 8.2.4024: confusing error message if imported name is used directly

Problem:    Confusing error message if imported name is used directly.
Solution:   Give a better error message.
This commit is contained in:
Bram Moolenaar
2022-01-07 12:45:29 +00:00
parent a909c48bec
commit 32884ad753
6 changed files with 39 additions and 9 deletions

View File

@@ -5170,7 +5170,7 @@ ex_call(exarg_T *eap)
dbg_check_breakpoint(eap);
// Handle a function returning a Funcref, Dictionary or List.
if (handle_subscript(&arg, &rettv,
if (handle_subscript(&arg, NULL, &rettv,
eap->skip ? NULL : &EVALARG_EVALUATE, TRUE) == FAIL)
{
failed = TRUE;