mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
fix(window): don't add a hsep when out of room if global stl is off
Problem: a horizontal separator may be added to a window that doesn't need one if there is no room when moving a different window. Solution: only restore a hsep in winframe_restore when the global statusline is enabled.
This commit is contained in:
@@ -3412,7 +3412,7 @@ void winframe_restore(win_T *wp, int dir, frame_T *unflat_altfr)
|
||||
if (frp->fr_parent->fr_layout == FR_COL && frp->fr_prev != NULL) {
|
||||
if (global_stl_height() == 0 && wp->w_status_height == 0) {
|
||||
frame_add_statusline(frp->fr_prev);
|
||||
} else if (wp->w_hsep_height == 0) {
|
||||
} else if (global_stl_height() > 0 && wp->w_hsep_height == 0) {
|
||||
frame_add_hsep(frp->fr_prev);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user