Remove W_NEXT use ->w_next

This commit is contained in:
Wayne Rowcliffe 2014-09-19 23:31:20 -05:00
parent 9b6f192693
commit 7aca07b0a7
3 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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.

View File

@ -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;
}