cmdheight=0: fix bugs #18961

Continue of #16251

Fix #18953
Fix #18960
Fix #18958
Fix #18955
Fix #18970
Fix #18983
Fix #18995
Fix #19112
This commit is contained in:
Shougo
2022-07-01 10:59:50 +09:00
committed by GitHub
parent 3b1423bfa7
commit 5a490d838e
7 changed files with 106 additions and 12 deletions

View File

@@ -6153,6 +6153,10 @@ void clearmode(void)
static void recording_mode(int attr)
{
if (p_ch <= 0 && !ui_has(kUIMessages)) {
return;
}
msg_puts_attr(_("recording"), attr);
if (!shortmess(SHM_RECORDING)) {
char s[4];
@@ -6457,7 +6461,8 @@ int redrawing(void)
*/
int messaging(void)
{
return !(p_lz && char_avail() && !KeyTyped);
return !(p_lz && char_avail() && !KeyTyped)
&& (p_ch > 0 || ui_has(kUIMessages));
}
/// Show current status info in ruler and various other places
@@ -6515,7 +6520,7 @@ static void win_redr_ruler(win_T *wp, bool always)
}
}
if (*p_ruf) {
if (*p_ruf && p_ch > 0 && !ui_has(kUIMessages)) {
int save_called_emsg = called_emsg;
called_emsg = false;
win_redr_custom(wp, false, true);