=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/spawn.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- src/usr.bin/tmux/spawn.c 2020/03/17 11:10:12 1.16 +++ src/usr.bin/tmux/spawn.c 2020/03/19 14:03:49 1.17 @@ -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 @@ -255,7 +255,8 @@ } 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) {