summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-27 21:30:03 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-27 21:30:03 +0100
commit9198de3ae2bd20ac51d580c44f2b43c282c1e773 (patch)
tree5a101dfee6a8a29a9000443cdf61a2e822a9f2c5 /src/screen.c
parentaebc6ef7cdc5d4d0627a711ff66e6fe8d67f9d87 (diff)
patch 9.0.0288: when 'cmdheight' is zero some messages are not displayedv9.0.0288
Problem: When 'cmdheight' is zero some messages are not displayed. Solution: Use a popup notification window.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index 866e3e481a..a1741ca5f2 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4211,10 +4211,10 @@ showmode(void)
int nwr_save;
int sub_attr;
- do_mode = ((p_smd && msg_silent == 0)
+ do_mode = p_smd && msg_silent == 0 && p_ch > 0
&& ((State & MODE_INSERT)
|| restart_edit != NUL
- || VIsual_active));
+ || VIsual_active);
if (do_mode || reg_recording != 0)
{
if (skip_showmode())