mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:8.2.3400: ":z!" is not supported
Problem: ":z!" is not supported.
Solution: Make ":z!" work and add tests. (Dominique Pellé, closes vim/vim#8836)
Use display height instead of current window height.
7f2dd1e90c
This commit is contained in:
@@ -3090,7 +3090,7 @@ void ex_z(exarg_T *eap)
|
||||
// Vi compatible: ":z!" uses display height, without a count uses
|
||||
// 'scroll'
|
||||
if (eap->forceit) {
|
||||
bigness = curwin->w_height_inner;
|
||||
bigness = Rows - 1;
|
||||
} else if (ONE_WINDOW) {
|
||||
bigness = curwin->w_p_scr * 2;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user