aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2022-07-01 10:59:50 +0900
committerGitHub <noreply@github.com>2022-06-30 18:59:50 -0700
commit5a490d838ed3288abcf45e16e6ab79c326a67c17 (patch)
treed6084fc7aec13c4324404bb0886ad907c8446ed3 /src/nvim/screen.c
parent3b1423bfa7adc5381af641a6e66fa2ca385ecab4 (diff)
downloadrneovim-5a490d838ed3288abcf45e16e6ab79c326a67c17.tar.gz
rneovim-5a490d838ed3288abcf45e16e6ab79c326a67c17.tar.bz2
rneovim-5a490d838ed3288abcf45e16e6ab79c326a67c17.zip
cmdheight=0: fix bugs #18961
Continue of #16251 Fix #18953 Fix #18960 Fix #18958 Fix #18955 Fix #18970 Fix #18983 Fix #18995 Fix #19112
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index ea75900ded..bc11883fd8 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -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);