0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0623: iterating through window frames is repeated

Problem:    Iterating through window frames is repeated.
Solution:   Define FOR_ALL_FRAMES. (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2018-12-22 17:07:50 +01:00
parent 9752c72f49
commit 3d1491ed23
5 changed files with 38 additions and 39 deletions

View File

@@ -11688,7 +11688,7 @@ ses_skipframe(frame_T *fr)
{
frame_T *frc;
for (frc = fr; frc != NULL; frc = frc->fr_next)
FOR_ALL_FRAMES(frc, fr)
if (ses_do_frame(frc))
break;
return frc;
@@ -11705,7 +11705,7 @@ ses_do_frame(frame_T *fr)
if (fr->fr_layout == FR_LEAF)
return ses_do_win(fr->fr_win);
for (frc = fr->fr_child; frc != NULL; frc = frc->fr_next)
FOR_ALL_FRAMES(frc, fr->fr_child)
if (ses_do_frame(frc))
return TRUE;
return FALSE;