summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 70cdd349d..465fb9e43 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4099,12 +4099,12 @@ ex_z(eap)
* 'scroll' */
if (eap->forceit)
bigness = curwin->w_height;
- else if (firstwin == lastwin)
- bigness = curwin->w_p_scr * 2;
#ifdef FEAT_WINDOWS
- else
+ else if (firstwin != lastwin)
bigness = curwin->w_height - 3;
#endif
+ else
+ bigness = curwin->w_p_scr * 2;
if (bigness < 1)
bigness = 1;