artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebbcee
)
Do not get muddled and crash if focusing a pane that is exiting,
author
nicm
<nicm@openbsd.org>
Wed, 10 Apr 2024 07:15:21 +0000
(07:15 +0000)
committer
nicm
<nicm@openbsd.org>
Wed, 10 Apr 2024 07:15:21 +0000
(07:15 +0000)
reported by Saul Nogueras in GitHub issue 3776.
usr.bin/tmux/window.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/window.c
b/usr.bin/tmux/window.c
index
3d4361a
..
e9a9a1e
100644
(file)
--- a/
usr.bin/tmux/window.c
+++ b/
usr.bin/tmux/window.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: window.c,v 1.2
89 2024/03/21 11:30:42
nicm Exp $ */
+/* $OpenBSD: window.c,v 1.2
90 2024/04/10 07:15:21
nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-474,7
+474,7
@@
window_pane_update_focus(struct window_pane *wp)
struct client *c;
int focused = 0;
- if (wp != NULL) {
+ if (wp != NULL
&& (~wp->flags & PANE_EXITED)
) {
if (wp != wp->window->active)
focused = 0;
else {