mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove W_NEXT use ->w_next
This commit is contained in:
parent
9b6f192693
commit
7aca07b0a7
@ -8025,7 +8025,7 @@ makeopens (
|
||||
* Remember the window number of the current window after restoring.
|
||||
*/
|
||||
nr = 0;
|
||||
for (wp = tab_firstwin; wp != NULL; wp = W_NEXT(wp)) {
|
||||
for (wp = tab_firstwin; wp != NULL; wp = wp->w_next) {
|
||||
if (ses_do_win(wp))
|
||||
++nr;
|
||||
else
|
||||
|
@ -518,7 +518,6 @@ EXTERN int updating_screen INIT(= FALSE);
|
||||
EXTERN win_T *firstwin; /* first window */
|
||||
EXTERN win_T *lastwin; /* last window */
|
||||
EXTERN win_T *prevwin INIT(= NULL); /* previous window */
|
||||
# define W_NEXT(wp) ((wp)->w_next)
|
||||
/*
|
||||
* When using this macro "break" only breaks out of the inner loop. Use "goto"
|
||||
* to break out of the tabpage loop.
|
||||
|
@ -6927,7 +6927,7 @@ int win_ins_lines(win_T *wp, int row, int line_count, int invalid, int mayclear)
|
||||
/* deletion will have messed up other windows */
|
||||
if (did_delete) {
|
||||
wp->w_redr_status = TRUE;
|
||||
win_rest_invalid(W_NEXT(wp));
|
||||
win_rest_invalid(wp->w_next);
|
||||
}
|
||||
return FAIL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user