diff options
author | Wayne Rowcliffe <war1025@gmail.com> | 2014-09-19 23:31:20 -0500 |
---|---|---|
committer | Wayne Rowcliffe <war1025@gmail.com> | 2014-09-24 19:00:50 -0500 |
commit | 7aca07b0a74f882e59d6462597cb5d981ed2cc1f (patch) | |
tree | 2ccd16ea064ee144e6c4ee40bc23092f60990871 | |
parent | 9b6f192693b02e2e5547baf7885d91e61eaa7735 (diff) | |
download | rneovim-7aca07b0a74f882e59d6462597cb5d981ed2cc1f.tar.gz rneovim-7aca07b0a74f882e59d6462597cb5d981ed2cc1f.tar.bz2 rneovim-7aca07b0a74f882e59d6462597cb5d981ed2cc1f.zip |
Remove W_NEXT use `->w_next`
-rw-r--r-- | src/nvim/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/nvim/globals.h | 1 | ||||
-rw-r--r-- | src/nvim/screen.c | 2 |
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; } |