aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/ex_docmd.c2
-rw-r--r--src/nvim/globals.h1
-rw-r--r--src/nvim/screen.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 12880b0f03..21c877e2b9 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 62f22e4938..d9c774439c 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -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.
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 1502895802..a4e38aa845 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -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;
}