aboutsummaryrefslogtreecommitdiff
path: root/svte.c
diff options
context:
space:
mode:
authormutantturkey <mutantturkey@gmail.com>2012-05-28 12:50:58 -0400
committermutantturkey <mutantturkey@gmail.com>2012-05-28 12:50:58 -0400
commite67f173ba29f09742bca4a0c6418205341bb86c8 (patch)
treed7265ec281f8fe871ddb7e12db84aca5fcb71e51 /svte.c
parentca8652dfd388185232d30aa1d29fe7d0aba84e63 (diff)
added a fix for startup error - thanks Wouter Van Rooy
Diffstat (limited to 'svte.c')
-rw-r--r--svte.c4
1 files 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),