aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-03-11 07:13:48 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-03-11 07:13:48 +0100
commitb72931e7040794f8c6adf6c0a446758f14107dda (patch)
tree80baa9c97f8faa58e62891385073ec8f0e245201 /src
parent3814750d3789b5c5690e8fa68066bd864a4f0a8e (diff)
downloadrneovim-b72931e7040794f8c6adf6c0a446758f14107dda.tar.gz
rneovim-b72931e7040794f8c6adf6c0a446758f14107dda.tar.bz2
rneovim-b72931e7040794f8c6adf6c0a446758f14107dda.zip
feat(ui): allow non-zero 'cmdheight' with ext_messages
Problem: Arbitrary restriction on 'cmdheight' with ext_messages. The 'cmdheight'-area may be desirable for the replacing cmdline. Solution: Allow non-zero 'cmdheight' with ext_messages.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/option.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index fcc5b5eb06..4f1ec59e77 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2024,9 +2024,6 @@ static const char *did_set_cmdheight(optset_T *args)
{
OptInt old_value = args->os_oldval.number;
- if (ui_has(kUIMessages)) {
- p_ch = 0;
- }
if (p_ch > Rows - min_rows() + 1) {
p_ch = Rows - min_rows() + 1;
}