diff options
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 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 |