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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user