mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.0199
This commit is contained in:
@@ -2160,7 +2160,7 @@ WinListLength(PyObject *self)
|
||||
win_T *w = firstwin;
|
||||
int n = 0;
|
||||
|
||||
while (w)
|
||||
while (w != NULL)
|
||||
{
|
||||
++n;
|
||||
w = W_NEXT(w);
|
||||
@@ -2175,7 +2175,7 @@ WinListItem(PyObject *self, int n)
|
||||
{
|
||||
win_T *w;
|
||||
|
||||
for (w = firstwin; w; w = W_NEXT(w), --n)
|
||||
for (w = firstwin; w != NULL; w = W_NEXT(w), --n)
|
||||
if (n == 0)
|
||||
return WindowNew(w);
|
||||
|
||||
|
Reference in New Issue
Block a user