Merge pull request #23332 from neovim/backport-23305-to-release-0.9

[Backport release-0.9] refactor: remove unnecessary height change in frame_add_hsep()
This commit is contained in:
zeertzjq
2023-04-27 08:20:06 +08:00
committed by GitHub

View File

@@ -3739,12 +3739,7 @@ static void frame_add_hsep(const frame_T *frp)
{
if (frp->fr_layout == FR_LEAF) {
win_T *wp = frp->fr_win;
if (wp->w_hsep_height == 0) {
if (wp->w_height > 0) { // don't make it negative
wp->w_height++;
}
wp->w_hsep_height = 1;
}
} else if (frp->fr_layout == FR_ROW) {
// Handle all the frames in the row.
FOR_ALL_FRAMES(frp, frp->fr_child) {