mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 11:55:56 +00:00
Update palette when moving a pane, GitHub issue 3437.
This commit is contained in:
parent
eb1f8d70a7
commit
d578cf8d3f
@ -115,6 +115,7 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
|
|
||||||
layout_init(w, wp);
|
layout_init(w, wp);
|
||||||
wp->flags |= PANE_CHANGED;
|
wp->flags |= PANE_CHANGED;
|
||||||
|
colour_palette_from_option(&wp->palette, wp->options);
|
||||||
|
|
||||||
if (idx == -1)
|
if (idx == -1)
|
||||||
idx = -1 - options_get_number(dst_s->options, "base-index");
|
idx = -1 - options_get_number(dst_s->options, "base-index");
|
||||||
|
@ -156,6 +156,7 @@ cmd_join_pane_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
else
|
else
|
||||||
TAILQ_INSERT_AFTER(&dst_w->panes, dst_wp, src_wp, entry);
|
TAILQ_INSERT_AFTER(&dst_w->panes, dst_wp, src_wp, entry);
|
||||||
layout_assign_pane(lc, src_wp, 0);
|
layout_assign_pane(lc, src_wp, 0);
|
||||||
|
colour_palette_from_option(&src_wp->palette, src_wp->options);
|
||||||
|
|
||||||
recalculate_sizes();
|
recalculate_sizes();
|
||||||
|
|
||||||
|
@ -132,6 +132,8 @@ cmd_swap_pane_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
src_w->last = NULL;
|
src_w->last = NULL;
|
||||||
if (dst_w->last == dst_wp)
|
if (dst_w->last == dst_wp)
|
||||||
dst_w->last = NULL;
|
dst_w->last = NULL;
|
||||||
|
colour_palette_from_option(&src_wp->palette, src_wp->options);
|
||||||
|
colour_palette_from_option(&dst_wp->palette, dst_wp->options);
|
||||||
}
|
}
|
||||||
server_redraw_window(src_w);
|
server_redraw_window(src_w);
|
||||||
server_redraw_window(dst_w);
|
server_redraw_window(dst_w);
|
||||||
|
Loading…
Reference in New Issue
Block a user