diff options
author | 2020-03-19 14:03:48 +0000 | |
---|---|---|
committer | 2020-03-19 14:03:48 +0000 | |
commit | 29ebed3733c53f26b45edd4bc4795dfaa9d323c8 (patch) | |
tree | 68852ebf2f494759269bd49a1cc27fdf7874fc88 /usr.bin/tmux/spawn.c | |
parent | Separate variable declaration and assignment. No functional change. (diff) | |
download | wireguard-openbsd-29ebed3733c53f26b45edd4bc4795dfaa9d323c8.tar.xz wireguard-openbsd-29ebed3733c53f26b45edd4bc4795dfaa9d323c8.zip |
Change input path so it doesn't require a pane.
Diffstat (limited to 'usr.bin/tmux/spawn.c')
-rw-r--r-- | usr.bin/tmux/spawn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/spawn.c b/usr.bin/tmux/spawn.c index 915640f2e8e..c3b8566987d 100644 --- a/usr.bin/tmux/spawn.c +++ b/usr.bin/tmux/spawn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spawn.c,v 1.16 2020/03/17 11:10:12 nicm Exp $ */ +/* $OpenBSD: spawn.c,v 1.17 2020/03/19 14:03:49 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -255,7 +255,8 @@ spawn_pane(struct spawn_context *sc, char **cause) } window_pane_reset_mode_all(sc->wp0); screen_reinit(&sc->wp0->base); - input_init(sc->wp0); + input_free(sc->wp0->ictx); + sc->wp0->ictx = input_init(sc->wp0); new_wp = sc->wp0; new_wp->flags &= ~(PANE_STATUSREADY|PANE_STATUSDRAWN); } else if (sc->lc == NULL) { |