patch 8.2.3400: ":z!" is not supported
Problem: ":z!" is not supported.
Solution: Make ":z!" work and add tests. (Dominique Pellé, closes #8836)
Use display height instead of current window height.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 021296d..5c92e09 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3445,7 +3445,7 @@
// Vi compatible: ":z!" uses display height, without a count uses
// 'scroll'
if (eap->forceit)
- bigness = curwin->w_height;
+ bigness = Rows - 1;
else if (!ONE_WINDOW)
bigness = curwin->w_height - 3;
else