mirror of
https://github.com/tmux/tmux.git
synced 2025-12-16 11:36:10 +00:00
Merge branch 'obsd-master'
This commit is contained in:
12
layout.c
12
layout.c
@@ -1100,9 +1100,8 @@ int
|
|||||||
layout_spread_cell(struct window *w, struct layout_cell *parent)
|
layout_spread_cell(struct window *w, struct layout_cell *parent)
|
||||||
{
|
{
|
||||||
struct layout_cell *lc;
|
struct layout_cell *lc;
|
||||||
struct style *sb_style = &w->active->scrollbar_style;
|
|
||||||
u_int number, each, size, this, remainder;
|
u_int number, each, size, this, remainder;
|
||||||
int change, changed, status, scrollbars;
|
int change, changed, status;
|
||||||
|
|
||||||
number = 0;
|
number = 0;
|
||||||
TAILQ_FOREACH (lc, &parent->cells, entry)
|
TAILQ_FOREACH (lc, &parent->cells, entry)
|
||||||
@@ -1110,14 +1109,9 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
|
|||||||
if (number <= 1)
|
if (number <= 1)
|
||||||
return (0);
|
return (0);
|
||||||
status = options_get_number(w->options, "pane-border-status");
|
status = options_get_number(w->options, "pane-border-status");
|
||||||
scrollbars = options_get_number(w->options, "pane-scrollbars");
|
|
||||||
|
|
||||||
if (parent->type == LAYOUT_LEFTRIGHT) {
|
if (parent->type == LAYOUT_LEFTRIGHT)
|
||||||
if (scrollbars)
|
size = parent->sx;
|
||||||
size = parent->sx - sb_style->width + sb_style->pad;
|
|
||||||
else
|
|
||||||
size = parent->sx;
|
|
||||||
}
|
|
||||||
else if (parent->type == LAYOUT_TOPBOTTOM) {
|
else if (parent->type == LAYOUT_TOPBOTTOM) {
|
||||||
if (layout_add_horizontal_border(w, parent, status))
|
if (layout_add_horizontal_border(w, parent, status))
|
||||||
size = parent->sy - 1;
|
size = parent->sy - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user