diff options
Diffstat (limited to '')
-rw-r--r-- | cmd-swap-pane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-swap-pane.c b/cmd-swap-pane.c index 4191b89..6931bd1 100644 --- a/cmd-swap-pane.c +++ b/cmd-swap-pane.c @@ -128,10 +128,10 @@ cmd_swap_pane_exec(struct cmd *self, struct cmdq_item *item) window_set_active_pane(dst_w, src_wp, 1); } if (src_w != dst_w) { - if (src_w->last == src_wp) - src_w->last = NULL; - if (dst_w->last == dst_wp) - dst_w->last = NULL; + window_pane_stack_remove(&src_w->last_panes, src_wp); + window_pane_stack_remove(&dst_w->last_panes, dst_wp); + 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(dst_w); |