patch 8.2.0149: maintaining a Vim9 branch separately is more work
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
diff --git a/src/channel.c b/src/channel.c
index 3aec7c8..5f03068 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2263,7 +2263,10 @@
while (item != NULL)
{
list_T *l = item->jq_value->vval.v_list;
- typval_T *tv = &l->lv_first->li_tv;
+ typval_T *tv;
+
+ range_list_materialize(l);
+ tv = &l->lv_first->li_tv;
if ((without_callback || !item->jq_no_callback)
&& ((id > 0 && tv->v_type == VAR_NUMBER && tv->vval.v_number == id)