diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-22 17:07:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-22 17:07:50 +0100 |
commit | 3d1491ed2394b3e92902102879bace28a5f9c201 (patch) | |
tree | 390dc467cce98e4c2058c6d38f6cc1cc19044a45 /src/ex_docmd.c | |
parent | 9752c72f492312acd1c84e673864faed31a3bc97 (diff) | |
download | vim-git-3d1491ed2394b3e92902102879bace28a5f9c201.tar.gz |
patch 8.1.0623: iterating through window frames is repeatedv8.1.0623
Problem: Iterating through window frames is repeated.
Solution: Define FOR_ALL_FRAMES. (Yegappan Lakshmanan)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 466e77e9e..d3246f439 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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; |