summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2022-07-30 16:54:05 +0100
committerBram Moolenaar <Bram@vim.org>2022-07-30 16:54:05 +0100
commitf39cfb72629f3e7fefaf578a3faa2619cd0654f8 (patch)
treea990dd08ff44924fdfe2b915644fe49e4996ea99 /src/screen.c
parentd90f91fe3075bb51668ed926182b2163da9df001 (diff)
downloadvim-git-f39cfb72629f3e7fefaf578a3faa2619cd0654f8.tar.gz
patch 9.0.0114: the command line takes up space even when not usedv9.0.0114
Problem: The command line takes up space even when not used. Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita, closes #10675, closes #940)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 1093b7c61..1f223f9be 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4726,7 +4726,7 @@ redrawing(void)
int
messaging(void)
{
- return (!(p_lz && char_avail() && !KeyTyped));
+ return (!(p_lz && char_avail() && !KeyTyped)) && p_ch > 0;
}
/*