Change input path so it doesn't require a pane.

This commit is contained in:
nicm
2020-03-19 14:03:48 +00:00
parent ce61bf931b
commit de34436d4c
7 changed files with 175 additions and 113 deletions

View File

@ -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) {