aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-25 18:52:58 +0800
committerGitHub <noreply@github.com>2023-04-25 18:52:58 +0800
commit2e8410b7be9dce7e5fa12a442e19d548bfb260bc (patch)
treed82f3a48056530c07cdef2161c1b2f0578eead30
parent965ad7726f91c2597ef6eb7a740ae024da99ec9b (diff)
downloadrneovim-2e8410b7be9dce7e5fa12a442e19d548bfb260bc.tar.gz
rneovim-2e8410b7be9dce7e5fa12a442e19d548bfb260bc.tar.bz2
rneovim-2e8410b7be9dce7e5fa12a442e19d548bfb260bc.zip
refactor: remove unnecessary height change in frame_add_hsep() (#23305)
This height change is wrong, and the height will be overwritten later by another height change.
-rw-r--r--src/nvim/window.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index f2c68730ea..81e1fd59c1 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -3742,12 +3742,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;
- }
+ 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) {