mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2025-03-17 21:52:39 +00:00
Mark new active pane changed after pane lost in window, and after
break-pane. Reported by tim@.
This commit is contained in:
parent
a785a7f700
commit
7236838dea
2 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
2
window.c
2
window.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue