aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spawn.c b/spawn.c
index b8397b75..e169b1e0 100644
--- a/spawn.c
+++ b/spawn.c
@@ -162,6 +162,7 @@ spawn_window(struct spawn_context *sc, char **cause)
if (s->curw == NULL)
s->curw = sc->wl;
sc->wl->session = s;
+ w->latest = sc->c;
winlink_set_window(sc->wl, w);
} else
w = NULL;