diff options
author | nicm <nicm> | 2019-05-27 12:48:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-27 12:48:52 +0000 |
commit | ae3eba6e08a8ff36a63b328880d4a97f21e1108b (patch) | |
tree | 0e2f335a10d9938a3c1b7a22cd23069dffec56c6 | |
parent | 6b332127cae97914d34c39575881fbc87205f4e0 (diff) | |
download | rtmux-ae3eba6e08a8ff36a63b328880d4a97f21e1108b.tar.gz rtmux-ae3eba6e08a8ff36a63b328880d4a97f21e1108b.tar.bz2 rtmux-ae3eba6e08a8ff36a63b328880d4a97f21e1108b.zip |
Fix crash when killing the current window, reported by Jesus Rafael
Sanchez in GitHub issue 1760.
-rw-r--r-- | spawn.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -161,6 +161,8 @@ spawn_window(struct spawn_context *sc, char **cause) xasprintf(cause, "couldn't create window %d", idx); return (NULL); } + if (s->curw == NULL) + s->curw = sc->wl; sc->wl->session = s; winlink_set_window(sc->wl, w); } else |