From e67f173ba29f09742bca4a0c6418205341bb86c8 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Mon, 28 May 2012 12:50:58 -0400 Subject: added a fix for startup error - thanks Wouter Van Rooy --- svte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svte.c b/svte.c index bc6d7e5..79311f2 100644 --- a/svte.c +++ b/svte.c @@ -257,8 +257,6 @@ static void tab_new() { term *t; int *tmp; - struct term *previous = get_page_term(NULL, - gtk_notebook_get_current_page(GTK_NOTEBOOK(svte.notebook))); char **args = 0; const gchar *shell = g_getenv("SHELL"); @@ -281,6 +279,8 @@ static void tab_new() { args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, t->pid, NULL); tab_geometry_hints(t); } else { + struct term *previous = get_page_term(NULL, + gtk_notebook_get_current_page(GTK_NOTEBOOK(svte.notebook))); vte_terminal_fork_command_full(VTE_TERMINAL(t->vte), VTE_PTY_DEFAULT, tab_get_cwd(previous), -- cgit v1.2.3