aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2022-07-31 14:13:19 +0900
committerGitHub <noreply@github.com>2022-07-31 13:13:19 +0800
commitc1652bdcb5b5ca95b5ae328cec582f23816b70dd (patch)
treef0a0ac777f12b7d44ea2b13daecc413d08176e86 /src/nvim/ex_cmds.c
parent7f4c50f8c48a57067147ff49bee84d8f4594159d (diff)
downloadrneovim-c1652bdcb5b5ca95b5ae328cec582f23816b70dd.tar.gz
rneovim-c1652bdcb5b5ca95b5ae328cec582f23816b70dd.tar.bz2
rneovim-c1652bdcb5b5ca95b5ae328cec582f23816b70dd.zip
cmdheight=0: fix bugs part2 (#19185)
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index c65d9359ac..7edf4c5bcb 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3669,7 +3669,7 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T
}
}
- bool cmdheight0 = p_ch < 1 && !ui_has(kUIMessages);
+ bool cmdheight0 = !ui_has_messages();
if (cmdheight0) {
// If cmdheight is 0, cmdheight must be set to 1 when we enter command line.
set_option_value("ch", 1L, NULL, 0);