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

Fixed changing directories when the path contains whitespace.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1192 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 0ba7d133
2007-01-15 Enrico Tröger <enrico.troeger@uvena.de>
* src/vte.c:
Fixed changing directories when the path contains whitespace.
2007-01-15 Nick Treleaven <nick.treleaven@btinternet.com>
* src/symbols.c:
......
......@@ -436,13 +436,12 @@ void vte_cwd(const gchar *filename, gboolean force)
if (vte_info.have_vte && (vc->follow_path || force) && filename != NULL)
{
gchar *path;
gchar *cmd;
path = g_path_get_dirname(filename);
vte_get_working_directory(); // refresh vte_info.dir
if (! utils_str_equal(path, vte_info.dir))
{
cmd = g_strconcat("cd ", path, "\n", NULL);
gchar *cmd = g_strconcat("cd \"", path, "\"\n", NULL);
vte_send_cmd(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