summaryrefslogtreecommitdiff
path: root/src/evalwindow.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-06 22:13:01 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-06 22:13:01 +0200
commit00d253e2b2f435a5386582c3f857008e7ac355c2 (patch)
tree71bbea4e4c6efa593a85266e445d82377a65f454 /src/evalwindow.c
parentee4e0c1e9a81cb5d96e0060203a9033c2f28588e (diff)
downloadvim-git-00d253e2b2f435a5386582c3f857008e7ac355c2.tar.gz
patch 8.2.0523: loops are repeatedv8.2.0523
Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
Diffstat (limited to 'src/evalwindow.c')
-rw-r--r--src/evalwindow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evalwindow.c b/src/evalwindow.c
index ab4ba838f..0db45bc9c 100644
--- a/src/evalwindow.c
+++ b/src/evalwindow.c
@@ -444,8 +444,7 @@ get_tabpage_info(tabpage_T *tp, int tp_idx)
l = list_alloc();
if (l != NULL)
{
- for (wp = (tp == curtab) ? firstwin : tp->tp_firstwin;
- wp != NULL; wp = wp->w_next)
+ FOR_ALL_WINDOWS_IN_TAB(tp, wp)
list_append_number(l, (varnumber_T)wp->w_id);
dict_add_list(dict, "windows", l);
}