0
0
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:
Bram Moolenaar
2006-02-16 22:11:02 +00:00
parent 4c7ed462cb
commit f740b29ae2
31 changed files with 613 additions and 205 deletions

View File

@@ -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);