aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-14 00:01:41 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-14 00:01:41 +0100
commit653a159225609f7e5efb45bc78cdf7b480d7ef93 (patch)
treede075bcb7fdbd8a3fbd9f800c3a04c63cfdfac6b /window.c
parent2159ff3256df4b823dfaed24e64047249cf079c2 (diff)
parentfc83517913c8280c222a6cf78ca7fb8053421b37 (diff)
downloadrtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.tar.gz
rtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.tar.bz2
rtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.zip
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 564559d7..3bf9ef95 100644
--- a/window.c
+++ b/window.c
@@ -1160,7 +1160,7 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
wme = TAILQ_FIRST(&wp->modes);
if (wme != NULL) {
- if (wme->mode->key != NULL)
+ if (wme->mode->key != NULL && c != NULL)
wme->mode->key(wme, c, s, wl, (key & ~KEYC_XTERM), m);
return (0);
}