summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-14 23:05:14 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-14 23:05:14 +0100
commit1735bc988c546cc962c5f94792815b4d7cb79710 (patch)
tree5d1fcc3e5d0f0d37fa33097c2eacff4cbc2317d4 /src/json.c
parent9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f (diff)
downloadvim-1735bc988c546cc962c5f94792815b4d7cb79710.zip
patch 7.4.1559
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index 34cf188a1..cd80a761e 100644
--- a/src/json.c
+++ b/src/json.c
@@ -212,6 +212,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options)
break;
case VAR_FUNC:
+ case VAR_PARTIAL:
case VAR_JOB:
case VAR_CHANNEL:
/* no JSON equivalent TODO: better error */