diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2021-09-04 13:44:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-04 13:44:01 +0200 |
commit | 7f2dd1e90c1d4a30c791fae20014594641769a1e (patch) | |
tree | ecccfbc440f9cfc99eec039af8dcb1625e797c3e /src/ex_cmds.c | |
parent | deba5eb195d6ac70171d4973091fa884809fa3fa (diff) |
patch 8.2.3400: ":z!" is not supportedv8.2.3400
Problem: ":z!" is not supported.
Solution: Make ":z!" work and add tests. (Dominique Pellé, closes #8836)
Use display height instead of current window height.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 021296d38c..5c92e094e1 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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 |