mirror of https://github.com/tmux/tmux.git
Do not get muddled and crash if focusing a pane that is exiting,
reported by Saul Nogueras in GitHub issue 3776.pull/3933/head
parent
a28175dbfd
commit
424f13fe13
2
window.c
2
window.c
|
@ -474,7 +474,7 @@ window_pane_update_focus(struct window_pane *wp)
|
||||||
struct client *c;
|
struct client *c;
|
||||||
int focused = 0;
|
int focused = 0;
|
||||||
|
|
||||||
if (wp != NULL) {
|
if (wp != NULL && (~wp->flags & PANE_EXITED)) {
|
||||||
if (wp != wp->window->active)
|
if (wp != wp->window->active)
|
||||||
focused = 0;
|
focused = 0;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue