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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user