mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor: remove unnecessary height change in frame_add_hsep()
This height change is wrong, and the height will be overwritten later by
another height change.
(cherry picked from commit 0a4ea7eb55
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
a8c62d3024
commit
26aa39f80c
@@ -3739,12 +3739,7 @@ static void frame_add_hsep(const frame_T *frp)
|
|||||||
{
|
{
|
||||||
if (frp->fr_layout == FR_LEAF) {
|
if (frp->fr_layout == FR_LEAF) {
|
||||||
win_T *wp = frp->fr_win;
|
win_T *wp = frp->fr_win;
|
||||||
if (wp->w_hsep_height == 0) {
|
wp->w_hsep_height = 1;
|
||||||
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) {
|
} else if (frp->fr_layout == FR_ROW) {
|
||||||
// Handle all the frames in the row.
|
// Handle all the frames in the row.
|
||||||
FOR_ALL_FRAMES(frp, frp->fr_child) {
|
FOR_ALL_FRAMES(frp, frp->fr_child) {
|
||||||
|
Reference in New Issue
Block a user