summaryrefslogtreecommitdiff
path: root/src/testing.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-26 15:56:19 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-26 15:56:19 +0100
commit8a7d6542b33e5d2b352262305c3bfdb2d14e1cf8 (patch)
tree8e5f241129a1c690ea81d697a72fb4c1704c0cb6 /src/testing.c
parent1d9215b9aaa120b9d78fee49488556f73007ce78 (diff)
downloadvim-git-8a7d6542b33e5d2b352262305c3bfdb2d14e1cf8.tar.gz
patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149
Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing.c b/src/testing.c
index ac9beea43..3ab9dcdc9 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -758,9 +758,10 @@ f_test_refcount(typval_T *argvars, typval_T *rettv)
switch (argvars[0].v_type)
{
case VAR_UNKNOWN:
+ case VAR_VOID:
case VAR_NUMBER:
- case VAR_FLOAT:
case VAR_BOOL:
+ case VAR_FLOAT:
case VAR_SPECIAL:
case VAR_STRING:
break;
@@ -781,7 +782,7 @@ f_test_refcount(typval_T *argvars, typval_T *rettv)
{
ufunc_T *fp;
- fp = find_func(argvars[0].vval.v_string);
+ fp = find_func(argvars[0].vval.v_string, NULL);
if (fp != NULL)
retval = fp->uf_refcount;
}