diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-30 19:10:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-30 19:10:06 +0100 |
commit | 6747cf1671bd41cddee77c65b3f9a70509f968db (patch) | |
tree | d0d033e5b99251dfd408f8d0463727191b0e370a /src/globals.h | |
parent | f39cfb72629f3e7fefaf578a3faa2619cd0654f8 (diff) | |
download | vim-git-6747cf1671bd41cddee77c65b3f9a70509f968db.tar.gz |
patch 9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a windowv9.0.0115
Problem: When 'cmdheight' is zero pressing ':' may scroll a window.
Solution: Add the made_cmdheight_nonzero flag and set 'scrolloff' to zero.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 786c850d3..86472acda 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1728,3 +1728,6 @@ EXTERN int channel_need_redraw INIT(= FALSE); // While executing a regexp and set to OPTION_MAGIC_ON or OPTION_MAGIC_OFF this // overrules p_magic. Otherwise set to OPTION_MAGIC_NOT_SET. EXTERN optmagic_T magic_overruled INIT(= OPTION_MAGIC_NOT_SET); + +// Set when 'cmdheight' is changed from non-zero to one temporarily. +EXTERN int made_cmdheight_nonzero INIT(= FALSE); |