diff src/if_py_both.h @ 4260:d8acfc49d94e v7.3.881

updated for version 7.3.881 Problem: Python list does not work correctly. Solution: Fix it and add a test. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Fri, 05 Apr 2013 19:32:36 +0200
parents 36fd800b8c6c
children 9f3da1dea7c0
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -1139,7 +1139,7 @@ ListSlice(PyObject *self, Py_ssize_t fir
 
     for (i = 0; i < n; ++i)
     {
-	PyObject	*item = ListItem(self, i);
+	PyObject	*item = ListItem(self, first + i);
 	if (item == NULL)
 	{
 	    Py_DECREF(list);