0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-01-27 22:09:39 +01:00
parent 3f169ce17e
commit 50985eb1f0
12 changed files with 268 additions and 21 deletions

View File

@@ -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,