mirror of
https://github.com/tmux/tmux.git
synced 2026-10-14 15:04:50 +00:00
Add local panes as well.
This commit is contained in:
@@ -91,9 +91,14 @@ window_pane_get_border_style(struct window_pane *wp, struct client *c,
|
||||
struct format_tree *ft;
|
||||
const char *option;
|
||||
struct grid_cell *saved;
|
||||
int *flag;
|
||||
struct window *w;
|
||||
struct window_pane *active;
|
||||
int local, *flag;
|
||||
|
||||
if (wp == active_get_effective_window(c, c->session)->active) {
|
||||
w = active_get_effective_window(c, c->session);
|
||||
active = active_get_effective_pane(c, w);
|
||||
local = (wp == active && active_has_local_pane(c, wp->window));
|
||||
if (wp == active) {
|
||||
flag = &wp->active_border_gc_set;
|
||||
saved = &wp->active_border_gc;
|
||||
option = "pane-active-border-style";
|
||||
@@ -103,6 +108,13 @@ window_pane_get_border_style(struct window_pane *wp, struct client *c,
|
||||
option = "pane-border-style";
|
||||
}
|
||||
|
||||
if (local) {
|
||||
ft = format_create_defaults(NULL, c, s, s->curw, wp);
|
||||
style_apply(gc, wp->options, option, ft);
|
||||
format_free(ft);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!*flag) {
|
||||
ft = format_create_defaults(NULL, c, s, NULL, wp);
|
||||
style_apply(saved, wp->options, option, ft);
|
||||
|
||||
Reference in New Issue
Block a user