Patch 9.0.0326
Problem:    Some changes for cmdheight=0 are not needed.
Solution:   Revert resize behavior if height is greater than the available
            space. (Shougo Matsushita, closes #11008)
Files:      src/window.c


*** ../vim-9.0.0325/src/window.c        2022-08-28 19:16:11.976716179 +0100
--- src/window.c        2022-08-30 11:45:36.267824833 +0100
***************
*** 5694,5703 ****
        // topframe: can only change the command line height
        if (height > ROWS_AVAIL)
            // If height is greater than the available space, try to create
!           // space for the frame by reducing 'cmdheight' if possible, while
!           // making sure `cmdheight` doesn't go below 1.
!           height = MIN((p_ch > 0 ? ROWS_AVAIL + (p_ch - 1)
!                                                       : ROWS_AVAIL), height);
        if (height > 0)
            frame_new_height(curfrp, height, FALSE, FALSE);
      }
--- 5694,5701 ----
        // topframe: can only change the command line height
        if (height > ROWS_AVAIL)
            // If height is greater than the available space, try to create
!           // space for the frame by reducing 'cmdheight' if possible.
!           height = ROWS_AVAIL;
        if (height > 0)
            frame_new_height(curfrp, height, FALSE, FALSE);
      }
*** ../vim-9.0.0325/src/version.c       2022-08-29 23:01:42.053954524 +0100
--- src/version.c       2022-08-30 11:51:07.212131440 +0100
***************
*** 709,710 ****
--- 709,712 ----
  {   /* Add new patch number below this line */
+ /**/
+     326,
  /**/

-- 
Computers make very fast, very accurate, mistakes.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220830105502.D5CF81C07CD%40moolenaar.net.

Raspunde prin e-mail lui