commit | 50985eb1f0bd3c73ce727f9bbd66c839c92ef0da | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jan 27 22:09:39 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jan 27 22:09:39 2020 +0100 |
tree | e7b8b997f064de0b6b9fb57ee031fa41ef175e56 | |
parent | 3f169ce17e8b779d105c96138a8b4246f2d270b9 [diff] [blame] |
patch 8.2.0159: non-materialized range() list causes problems Problem: Non-materialized range() list causes problems. (Fujiwara Takuya) Solution: Materialize the list where needed.
diff --git a/src/json.c b/src/json.c index da0ba4b..bfa5d50 100644 --- a/src/json.c +++ b/src/json.c
@@ -265,6 +265,7 @@ 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,