vim-patch:8.0.0069

Problem:    Compiler warning for self-comparison.
Solution:   Define ONE_WINDOW and add vim/vim#ifdef.

a1f4cb93ba
This commit is contained in:
ckelsel
2017-07-23 10:12:05 +08:00
parent 253f6f3bbf
commit ad07e9c7fc
9 changed files with 14 additions and 13 deletions

View File

@@ -2806,7 +2806,7 @@ void ex_z(exarg_T *eap)
* 'scroll' */
if (eap->forceit)
bigness = curwin->w_height;
else if (firstwin == lastwin)
else if (ONE_WINDOW)
bigness = curwin->w_p_scr * 2;
else
bigness = curwin->w_height - 3;