diff options
author | mutantturkey <mutantturkey@gmail.com> | 2012-05-28 12:50:58 -0400 |
---|---|---|
committer | mutantturkey <mutantturkey@gmail.com> | 2012-05-28 12:50:58 -0400 |
commit | e67f173ba29f09742bca4a0c6418205341bb86c8 (patch) | |
tree | d7265ec281f8fe871ddb7e12db84aca5fcb71e51 | |
parent | ca8652dfd388185232d30aa1d29fe7d0aba84e63 (diff) |
added a fix for startup error - thanks Wouter Van Rooy
-rw-r--r-- | svte.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), |