summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-27 22:09:39 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-27 22:09:39 +0100
commit50985eb1f0bd3c73ce727f9bbd66c839c92ef0da (patch)
treee7b8b997f064de0b6b9fb57ee031fa41ef175e56 /src/channel.c
parent3f169ce17e8b779d105c96138a8b4246f2d270b9 (diff)
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/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index 5f03068734..3d891e8236 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -5123,6 +5123,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
return FAIL;
}
+ range_list_materialize(item->vval.v_list);
li = item->vval.v_list->lv_first;
for (; li != NULL && n < 16; li = li->li_next, n++)
{
@@ -5529,6 +5530,7 @@ win32_build_cmd(list_T *l, garray_T *gap)
listitem_T *li;
char_u *s;
+ range_list_materialize(l);
for (li = l->lv_first; li != NULL; li = li->li_next)
{
s = tv_get_string_chk(&li->li_tv);