0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -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:
Bram Moolenaar
2020-04-06 22:13:01 +02:00
parent ee4e0c1e9a
commit 00d253e2b2
19 changed files with 72 additions and 44 deletions

View File

@@ -2133,7 +2133,7 @@ popup_close_and_callback(win_T *wp, typval_T *arg)
// - another popup window with a terminal
// - the previous window
// - the first one.
for (owp = first_popupwin; owp != NULL; owp = owp->w_next)
FOR_ALL_POPUPWINS(owp)
if (owp != curwin && owp->w_buffer->b_term != NULL)
break;
if (owp != NULL)