vim-patch:9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a window

Problem:    When 'cmdheight' is zero pressing ':' may scroll a window.
Solution:   Add the made_cmdheight_nonzero flag and set 'scrolloff' to zero.
6747cf1671
This commit is contained in:
Shougo Matsushita
2022-07-31 17:19:17 +09:00
committed by zeertzjq
parent 81a1d26c3e
commit 63244f68e7
3 changed files with 20 additions and 2 deletions

View File

@@ -1084,4 +1084,7 @@ EXTERN char windowsVersion[20] INIT(= { 0 });
EXTERN int exit_need_delay INIT(= 0);
// Set when 'cmdheight' is changed from non-zero to one temporarily.
EXTERN int made_cmdheight_nonzero INIT(= false);
#endif // NVIM_GLOBALS_H