diff src/option.c @ 30661:57ebc2a4d2ca v9.0.0665

patch 9.0.0665: setting 'cmdheight' has no effect if last window was resized Commit: https://github.com/vim/vim/commit/0816f473ab2f6cf7d8311c0f97371cada7f20d18 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 5 15:42:32 2022 +0100 patch 9.0.0665: setting 'cmdheight' has no effect if last window was resized 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Oct 2022 16:45:04 +0200
parents 101f08b49ed3
children 15ac28c12c8f
line wrap: on
line diff
--- 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();
     }