mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
Expand FOR_ALL_WINDOWS to FOR_ALL_WINDOWS_IN_TAB(curtab)
This commit is contained in:
@@ -519,7 +519,8 @@ EXTERN win_T *firstwin; /* first window */
|
|||||||
EXTERN win_T *lastwin; /* last window */
|
EXTERN win_T *lastwin; /* last window */
|
||||||
EXTERN win_T *prevwin INIT(= NULL); /* previous window */
|
EXTERN win_T *prevwin INIT(= NULL); /* previous window */
|
||||||
# define W_NEXT(wp) ((wp)->w_next)
|
# define W_NEXT(wp) ((wp)->w_next)
|
||||||
# define FOR_ALL_WINDOWS(wp) for (win_T *wp = firstwin; wp != NULL; wp = wp->w_next)
|
# define FOR_ALL_WINDOWS(wp) \
|
||||||
|
FOR_ALL_WINDOWS_IN_TAB(wp, curtab)
|
||||||
/*
|
/*
|
||||||
* When using this macro "break" only breaks out of the inner loop. Use "goto"
|
* When using this macro "break" only breaks out of the inner loop. Use "goto"
|
||||||
* to break out of the tabpage loop.
|
* to break out of the tabpage loop.
|
||||||
|
Reference in New Issue
Block a user