mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0523: loops are repeated
Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user