Mark new active pane changed after pane lost in window, and after

break-pane. Reported by tim@.
pull/210/merge
nicm 2015-12-02 23:09:22 +00:00
parent a785a7f700
commit 7236838dea
2 changed files with 3 additions and 0 deletions

View File

@ -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");

View File

@ -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;
}