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

updated for version 7.3.881

Problem:    Python list does not work correctly.
Solution:   Fix it and add a test. (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2013-04-05 19:32:36 +02:00
parent b3049f4a34
commit 24b11fb173
4 changed files with 39 additions and 1 deletions

View File

@@ -1139,7 +1139,7 @@ ListSlice(PyObject *self, Py_ssize_t first, Py_ssize_t last)
for (i = 0; i < n; ++i)
{
PyObject *item = ListItem(self, i);
PyObject *item = ListItem(self, first + i);
if (item == NULL)
{
Py_DECREF(list);