diff options
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 5c6e475ac7..b3cc3282d5 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -22132,11 +22132,12 @@ ret_free: static char_u * trans_function_name( char_u **pp, - int skip, // only find the end, don't evaluate + bool skip, // only find the end, don't evaluate int flags, funcdict_T *fdp, // return: info about dictionary used partial_T **partial // return: partial of a FuncRef ) + FUNC_ATTR_NONNULL_ARG(1) { char_u *name = NULL; const char_u *start; @@ -22323,7 +22324,7 @@ trans_function_name( } name = xmalloc(len + lead + 1); - if (lead > 0){ + if (!skip && lead > 0) { name[0] = K_SPECIAL; name[1] = KS_EXTRA; name[2] = (int)KE_SNR; |