diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-16 22:11:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-16 22:11:02 +0000 |
commit | f740b29ae2a346e44c34001b3bf8ecfa0c7857bd (patch) | |
tree | 5b62807af1359d3df97367448927cdbb53969448 /src/if_mzsch.c | |
parent | 4c7ed462cb7813730b4f15f9cb09f1b26d097fca (diff) | |
download | vim-git-f740b29ae2a346e44c34001b3bf8ecfa0c7857bd.tar.gz |
updated for version 7.0199v7.0199
Diffstat (limited to 'src/if_mzsch.c')
-rw-r--r-- | src/if_mzsch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/if_mzsch.c b/src/if_mzsch.c index 4d5bb3223..9eb524a6a 100644 --- a/src/if_mzsch.c +++ b/src/if_mzsch.c @@ -1423,7 +1423,8 @@ get_window_count(void *data, int argc, Scheme_Object **argv) win_T *w; int n = 0; - for (w = firstwin; w; w = w->w_next) ++n; + for (w = firstwin; w != NULL; w = w->w_next) + ++n; return scheme_make_integer(n); } @@ -1439,7 +1440,7 @@ get_window_list(void *data, int argc, Scheme_Object **argv) buf = get_buffer_arg(prim->name, 0, argc, argv); list = scheme_null; - for (w = firstwin; w; w = w->w_next) + for (w = firstwin; w != NULL; w = w->w_next) if (w->w_buffer == buf->buf) list = scheme_make_pair(window_new(w), list); @@ -1500,7 +1501,7 @@ get_window_by_num(void *data, int argc, Scheme_Object **argv) if (fnum < 1) scheme_signal_error(_("window index is out of range")); - for (win = firstwin; win; win = win->w_next, --fnum) + for (win = firstwin; win != NULL; win = win->w_next, --fnum) if (fnum == 1) /* to be 1-based */ return window_new(win); |