summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-06 11:39:06 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-06 11:39:06 +0100
commitc9f5f73206272ccad0aa536854debc5f9781978a (patch)
tree2d1976965b9052140b4ad929e3f0227721c9c862 /src/option.c
parentdb77cb3c08784e6038dd029271b2080c1b2d9acb (diff)
patch 9.0.0670: no space for command line when there is a tablinev9.0.0670
Problem: No space for command line when there is a tabline. Solution: Correct computation of where the command line should be. (closes #11295)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 1b8c3eae8c..3cd1d4019f 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3577,7 +3577,8 @@ set_num_option(
// Only compute the new window layout when startup has been
// completed. Otherwise the frame sizes may be wrong.
- if ((p_ch != old_value || topframe->fr_height != Rows - p_ch)
+ if ((p_ch != old_value
+ || tabline_height() + topframe->fr_height != Rows - p_ch)
&& full_screen
#ifdef FEAT_GUI
&& !gui.starting