From e44bd9f750bc374ae116a849e7ccde4efabc034a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 25 Mar 2013 15:59:57 +0000 Subject: Revert the command-prefix change which breaks sequences of commands. --- window.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 0ab36033..0f445edc 100644 --- a/window.c +++ b/window.c @@ -314,24 +314,15 @@ window_create(const char *name, const char *cmd, const char *shell, { struct window *w; struct window_pane *wp; - const char *prefix; - char *cmd1; w = window_create1(sx, sy); wp = window_add_pane(w, hlimit); layout_init(w, wp); - if (*cmd != '\0') { - prefix = options_get_string(&w->options, "command-prefix"); - xasprintf(&cmd1, "%s%s", prefix, cmd); - } else - cmd1 = xstrdup(""); - if (window_pane_spawn(wp, cmd1, shell, cwd, env, tio, cause) != 0) { + if (window_pane_spawn(wp, cmd, shell, cwd, env, tio, cause) != 0) { window_destroy(w); - free(cmd1); return (NULL); } - free(cmd1); w->active = TAILQ_FIRST(&w->panes); if (name != NULL) { -- cgit