Mercurial > vim
diff src/move.c @ 10349:cf988222b150 v8.0.0069
commit https://github.com/vim/vim/commit/a1f4cb93ba50ea9e40cd4b1f5592b8a6d1398660
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 6 15:25:42 2016 +0100
patch 8.0.0069
Problem: Compiler warning for self-comparison.
Solution: Define ONE_WINDOW and add #ifdef.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Nov 2016 15:30:05 +0100 |
parents | d0b74b18e4b5 |
children | f91c0376f2c6 |
line wrap: on
line diff
--- 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)