diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-14 23:05:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-14 23:05:14 +0100 |
commit | 1735bc988c546cc962c5f94792815b4d7cb79710 (patch) | |
tree | 5d1fcc3e5d0f0d37fa33097c2eacff4cbc2317d4 /src/json.c | |
parent | 9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f (diff) | |
download | vim-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.c | 1 |
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 */ |