mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 04:44:25 +00:00
Do not create zero size panes, from Uzair Aftab.
This commit is contained in:
3
layout.c
3
layout.c
@@ -461,7 +461,8 @@ layout_fix_panes(struct window *w, struct window_pane *skip)
|
|||||||
layout_add_horizontal_border(w, lc, status)) {
|
layout_add_horizontal_border(w, lc, status)) {
|
||||||
if (status == PANE_STATUS_TOP)
|
if (status == PANE_STATUS_TOP)
|
||||||
wp->yoff++;
|
wp->yoff++;
|
||||||
sy--;
|
if (sy > 1)
|
||||||
|
sy--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window_pane_scrollbar_reserve(wp)) {
|
if (window_pane_scrollbar_reserve(wp)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user