cmdheight=0: fix bugs part2 (#19185)

This commit is contained in:
Shougo
2022-07-31 14:13:19 +09:00
committed by GitHub
parent 7f4c50f8c4
commit c1652bdcb5
10 changed files with 42 additions and 20 deletions

View File

@@ -689,7 +689,7 @@ static void finish_incsearch_highlighting(int gotesc, incsearch_state_T *s, bool
/// @param init_ccline clear ccline first
static uint8_t *command_line_enter(int firstc, long count, int indent, bool init_ccline)
{
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.