diff options
-rw-r--r-- | cmd-break-pane.c | 1 | ||||
-rw-r--r-- | window.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/cmd-break-pane.c b/cmd-break-pane.c index 39179cc7..707cd09b 100644 --- a/cmd-break-pane.c +++ b/cmd-break-pane.c @@ -82,6 +82,7 @@ cmd_break_pane_exec(struct cmd *self, struct cmd_q *cmdq) window_set_name(w, name); free(name); layout_init(w, wp); + wp->flags |= PANE_CHANGED; if (idx == -1) idx = -1 - options_get_number(dst_s->options, "base-index"); @@ -579,6 +579,8 @@ window_lost_pane(struct window *w, struct window_pane *wp) if (w->active == NULL) w->active = TAILQ_NEXT(wp, entry); } + if (w->active != NULL) + w->active->flags |= PANE_CHANGED; } else if (wp == w->last) w->last = NULL; } |