diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-27 22:09:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-27 22:09:39 +0100 |
commit | 50985eb1f0bd3c73ce727f9bbd66c839c92ef0da (patch) | |
tree | e7b8b997f064de0b6b9fb57ee031fa41ef175e56 /src/json.c | |
parent | 3f169ce17e8b779d105c96138a8b4246f2d270b9 (diff) | |
download | vim-git-50985eb1f0bd3c73ce727f9bbd66c839c92ef0da.tar.gz |
patch 8.2.0159: non-materialized range() list causes problemsv8.2.0159
Problem: Non-materialized range() list causes problems. (Fujiwara Takuya)
Solution: Materialize the list where needed.
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 da0ba4bb2..bfa5d50dd 100644 --- a/src/json.c +++ b/src/json.c @@ -265,6 +265,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options) l->lv_copyID = copyID; ga_append(gap, '['); + range_list_materialize(l); for (li = l->lv_first; li != NULL && !got_int; ) { if (json_encode_item(gap, &li->li_tv, copyID, |