mirror of
https://github.com/tmux/tmux.git
synced 2025-01-26 07:58:55 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
150ef86800
1
layout.c
1
layout.c
@ -53,6 +53,7 @@ layout_create_cell(struct layout_cell *lcparent)
|
|||||||
lc->yoff = UINT_MAX;
|
lc->yoff = UINT_MAX;
|
||||||
|
|
||||||
lc->wp = NULL;
|
lc->wp = NULL;
|
||||||
|
lc->lastwp = NULL;
|
||||||
|
|
||||||
return (lc);
|
return (lc);
|
||||||
}
|
}
|
||||||
|
26
style.c
26
style.c
@ -203,8 +203,14 @@ style_apply(struct grid_cell *gc, struct options *oo, const char *name)
|
|||||||
|
|
||||||
memcpy(gc, &grid_default_cell, sizeof *gc);
|
memcpy(gc, &grid_default_cell, sizeof *gc);
|
||||||
gcp = options_get_style(oo, name);
|
gcp = options_get_style(oo, name);
|
||||||
colour_set_fg(gc, gcp->fg);
|
if (gcp->flags & GRID_FLAG_FG256)
|
||||||
colour_set_bg(gc, gcp->bg);
|
colour_set_fg(gc, gcp->fg | 0x100);
|
||||||
|
else
|
||||||
|
colour_set_fg(gc, gcp->fg);
|
||||||
|
if (gcp->flags & GRID_FLAG_BG256)
|
||||||
|
colour_set_bg(gc, gcp->bg | 0x100);
|
||||||
|
else
|
||||||
|
colour_set_bg(gc, gcp->bg);
|
||||||
gc->attr |= gcp->attr;
|
gc->attr |= gcp->attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,10 +221,18 @@ style_apply_update(struct grid_cell *gc, struct options *oo, const char *name)
|
|||||||
struct grid_cell *gcp;
|
struct grid_cell *gcp;
|
||||||
|
|
||||||
gcp = options_get_style(oo, name);
|
gcp = options_get_style(oo, name);
|
||||||
if (gcp->fg != 8)
|
if (gcp->fg != 8) {
|
||||||
colour_set_fg(gc, gcp->fg);
|
if (gcp->flags & GRID_FLAG_FG256)
|
||||||
if (gcp->bg != 8)
|
colour_set_fg(gc, gcp->fg | 0x100);
|
||||||
colour_set_bg(gc, gcp->bg);
|
else
|
||||||
|
colour_set_fg(gc, gcp->fg);
|
||||||
|
}
|
||||||
|
if (gcp->bg != 8) {
|
||||||
|
if (gcp->flags & GRID_FLAG_BG256)
|
||||||
|
colour_set_bg(gc, gcp->bg | 0x100);
|
||||||
|
else
|
||||||
|
colour_set_bg(gc, gcp->bg);
|
||||||
|
}
|
||||||
if (gcp->attr != 0)
|
if (gcp->attr != 0)
|
||||||
gc->attr |= gcp->attr;
|
gc->attr |= gcp->attr;
|
||||||
}
|
}
|
||||||
|
5
window.c
5
window.c
@ -407,8 +407,9 @@ window_pane_active_set(struct window_pane *wp, struct window_pane *nextwp)
|
|||||||
* Previously active pane, if any, must not be the same as the source
|
* Previously active pane, if any, must not be the same as the source
|
||||||
* pane.
|
* pane.
|
||||||
*/
|
*/
|
||||||
if (nextwp->layout_cell->parent != NULL) {
|
lc = nextwp->layout_cell->parent;
|
||||||
lastwp = nextwp->layout_cell->parent->lastwp;
|
if (lc != NULL && lc->lastwp != NULL) {
|
||||||
|
lastwp = lc->lastwp;
|
||||||
if (lastwp != wp && window_pane_visible(lastwp))
|
if (lastwp != wp && window_pane_visible(lastwp))
|
||||||
return (lastwp);
|
return (lastwp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user