diff options
author | 2019-09-19 09:02:30 +0000 | |
---|---|---|
committer | 2019-09-19 09:02:30 +0000 | |
commit | f4f81a00557dfad34279abe62ce21732ae07678a (patch) | |
tree | 81382dac5aa6144673df2af3263f2fa29a0feae6 /usr.bin/tmux/spawn.c | |
parent | Do not use bright when emulating 256 colours on an 8 colour terminal (diff) | |
download | wireguard-openbsd-f4f81a00557dfad34279abe62ce21732ae07678a.tar.xz wireguard-openbsd-f4f81a00557dfad34279abe62ce21732ae07678a.zip |
Add a "latest" window-size option which tries to size windows based on
the most recently used client. From Tommie Gannert in GitHub issue 1869
based on earlier changes from me.
Diffstat (limited to 'usr.bin/tmux/spawn.c')
-rw-r--r-- | usr.bin/tmux/spawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/spawn.c b/usr.bin/tmux/spawn.c index c7d0ebb2d35..e34895a46bc 100644 --- a/usr.bin/tmux/spawn.c +++ b/usr.bin/tmux/spawn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spawn.c,v 1.7 2019/09/18 11:37:58 nicm Exp $ */ +/* $OpenBSD: spawn.c,v 1.8 2019/09/19 09:02:30 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -164,6 +164,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; |