updated for version 7.4.151
Problem: Python: slices with steps are not supported.
Solution: Support slices in Python vim.List. (ZyX)
diff --git a/src/eval.c b/src/eval.c
index 693896c..65f4b11 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -6425,6 +6425,16 @@
if (ni == NULL)
return FAIL;
copy_tv(tv, &ni->li_tv);
+ list_insert(l, ni, item);
+ return OK;
+}
+
+ void
+list_insert(l, ni, item)
+ list_T *l;
+ listitem_T *ni;
+ listitem_T *item;
+{
if (item == NULL)
/* Append new item at end of list. */
list_append(l, ni);
@@ -6446,7 +6456,6 @@
item->li_prev = ni;
++l->lv_len;
}
- return OK;
}
/*