diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-05 15:42:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-05 15:42:32 +0100 |
commit | 0816f473ab2f6cf7d8311c0f97371cada7f20d18 (patch) | |
tree | 46c3a0fe1d1a91ac6ca535b297ccc72e2d378354 /src/option.c | |
parent | f3ef026c9897f1d2e3fba47166a4771d507dae91 (diff) |
patch 9.0.0665: setting 'cmdheight' has no effect if last window was resizedv9.0.0665
Problem: Setting 'cmdheight' has no effect if last window was resized.
Solution: Do apply 'cmdheight' when told to. Use the frame height instead
of the cmdline_row. (closes #11286)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c index 7d6b9547f6..1b8c3eae8c 100644 --- a/src/option.c +++ b/src/option.c @@ -3577,11 +3577,12 @@ 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 && full_screen + if ((p_ch != old_value || topframe->fr_height != Rows - p_ch) + && full_screen #ifdef FEAT_GUI && !gui.starting #endif - ) + ) command_height(); } |