summaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/move.c b/src/move.c
index c7acdfa68..912e51ccd 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2311,7 +2311,7 @@ onepage(int dir, long count)
#endif
if (dir == FORWARD)
{
- if (firstwin == lastwin && p_window > 0 && p_window < Rows - 1)
+ if (ONE_WINDOW && p_window > 0 && p_window < Rows - 1)
{
/* Vi compatible scrolling */
if (p_window <= 2)
@@ -2361,7 +2361,7 @@ onepage(int dir, long count)
continue;
}
#endif
- if (firstwin == lastwin && p_window > 0 && p_window < Rows - 1)
+ if (ONE_WINDOW && p_window > 0 && p_window < Rows - 1)
{
/* Vi compatible scrolling (sort of) */
if (p_window <= 2)