mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.0.0069
Problem: Compiler warning for self-comparison. Solution: Define ONE_WINDOW and add #ifdef.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user