1
0
forked from aniani/vim

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.
This commit is contained in:
Dominique Pelle
2021-09-04 13:44:01 +02:00
committed by Bram Moolenaar
parent deba5eb195
commit 7f2dd1e90c
5 changed files with 45 additions and 8 deletions

View File

@@ -3445,7 +3445,7 @@ ex_z(exarg_T *eap)
// 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