@@ -234,7 +234,7 @@ do_window(
234234/* cursor to previous window with wrap around */
235235 case 'W' :
236236 CHECK_CMDWIN
237- if (firstwin == lastwin && Prenum != 1 ) /* just one window */
237+ if (ONE_WINDOW && Prenum != 1 ) /* just one window */
238238 beep_flush ();
239239 else
240240 {
@@ -1593,7 +1593,7 @@ win_rotate(int upwards, int count)
15931593 frame_T * frp ;
15941594 int n ;
15951595
1596- if (firstwin == lastwin ) /* nothing to do */
1596+ if (ONE_WINDOW ) /* nothing to do */
15971597 {
15981598 beep_flush ();
15991599 return ;
@@ -2206,7 +2206,7 @@ one_window(void)
22062206 }
22072207 return TRUE;
22082208#else
2209- return firstwin == lastwin ;
2209+ return ONE_WINDOW ;
22102210#endif
22112211}
22122212
@@ -2220,7 +2220,7 @@ close_last_window_tabpage(
22202220 int free_buf ,
22212221 tabpage_T * prev_curtab )
22222222{
2223- if (firstwin == lastwin )
2223+ if (ONE_WINDOW )
22242224 {
22252225#ifdef FEAT_AUTOCMD
22262226 buf_T * old_curbuf = curbuf ;
@@ -2625,7 +2625,7 @@ winframe_remove(
26252625 /*
26262626 * If there is only one window there is nothing to remove.
26272627 */
2628- if (tp == NULL ? firstwin == lastwin : tp -> tp_firstwin == tp -> tp_lastwin )
2628+ if (tp == NULL ? ONE_WINDOW : tp -> tp_firstwin == tp -> tp_lastwin )
26292629 return NULL ;
26302630
26312631 /*
@@ -2780,7 +2780,7 @@ win_altframe(
27802780 frame_T * frp ;
27812781 int b ;
27822782
2783- if (tp == NULL ? firstwin == lastwin : tp -> tp_firstwin == tp -> tp_lastwin )
2783+ if (tp == NULL ? ONE_WINDOW : tp -> tp_firstwin == tp -> tp_lastwin )
27842784 /* Last window in this tab page, will go to next tab page. */
27852785 return alt_tabpage ()-> tp_curwin -> w_frame ;
27862786
0 commit comments