Kaydet (Commit) 2758ac24 authored tarafından Enrico Tröger's avatar Enrico Tröger

If the VTE has a dirty command line, print the resulting warning also to the debug messages.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3528 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst bc52e9db
...@@ -676,8 +676,11 @@ static GPid build_run_cmd(GeanyDocument *doc) ...@@ -676,8 +676,11 @@ static GPid build_run_cmd(GeanyDocument *doc)
g_free(utf8_working_dir); g_free(utf8_working_dir);
} }
if (! vte_send_cmd(vte_cmd)) if (! vte_send_cmd(vte_cmd))
{
ui_set_statusbar(FALSE, ui_set_statusbar(FALSE,
_("Could not execute the file in the VTE because it probably contains a command.")); _("Could not execute the file in the VTE because it probably contains a command."));
geany_debug("Could not execute the file in the VTE because it probably contains a command.");
}
/* show the VTE */ /* show the VTE */
gtk_notebook_set_current_page(GTK_NOTEBOOK(msgwindow.notebook), MSG_VTE); gtk_notebook_set_current_page(GTK_NOTEBOOK(msgwindow.notebook), MSG_VTE);
......
...@@ -653,8 +653,12 @@ void vte_cwd(const gchar *filename, gboolean force) ...@@ -653,8 +653,12 @@ void vte_cwd(const gchar *filename, gboolean force)
gchar *quoted_path = g_shell_quote(path); gchar *quoted_path = g_shell_quote(path);
gchar *cmd = g_strconcat("cd ", quoted_path, "\n", NULL); gchar *cmd = g_strconcat("cd ", quoted_path, "\n", NULL);
if (! vte_send_cmd(cmd)) if (! vte_send_cmd(cmd))
{
ui_set_statusbar(FALSE, ui_set_statusbar(FALSE,
_("Could not change the directory in the VTE because it probably contains a command.")); _("Could not change the directory in the VTE because it probably contains a command."));
geany_debug(
"Could not change the directory in the VTE because it probably contains a command.");
}
g_free(quoted_path); g_free(quoted_path);
g_free(cmd); g_free(cmd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment