diff options
-rw-r--r-- | src/eval.c | 12 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c index 5588abd026..935f19aa76 100644 --- a/src/eval.c +++ b/src/eval.c @@ -3973,8 +3973,8 @@ eval_method( int len2; char_u *fname; int idx; - imported_T *import = find_imported(name, len, - TRUE, evalarg->eval_cctx); + imported_T *import = find_imported(name, len, TRUE, + evalarg == NULL ? NULL : evalarg->eval_cctx); type_T *type; // value->import.func() @@ -3986,10 +3986,11 @@ eval_method( len2 = get_name_len(arg, &alias, evaluate, TRUE); if (len2 <= 0) { - emsg(_(e_missing_name_after_dot)); + if (verbose) + emsg(_(e_missing_name_after_dot)); ret = FAIL; } - else + else if (evaluate) { int cc = fname[len2]; ufunc_T *ufunc; @@ -4014,7 +4015,8 @@ eval_method( else { // TODO: how about a partial? - semsg(_(e_not_callable_type_str), fname); + if (verbose) + semsg(_(e_not_callable_type_str), fname); ret = FAIL; } } diff --git a/src/version.c b/src/version.c index bffed683c7..b658ec7ae5 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4110, +/**/ 4109, /**/ 4108, |