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

Don't follow the path of the document if the document has not an absolute file path.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3568 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst d6c1d1e8
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
Make document_get_status_color() returning a const GdkColor. Make document_get_status_color() returning a const GdkColor.
Add editor_get_word_at_pos() and document_get_status_color() to the Add editor_get_word_at_pos() and document_get_status_color() to the
plugin API. plugin API.
* src/vte.c, plugins/filebrowser.c:
Don't follow the path of the document if the document has not an
absolute file path.
2009-02-08 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> 2009-02-08 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
......
...@@ -949,7 +949,7 @@ static void document_activate_cb(G_GNUC_UNUSED GObject *obj, GeanyDocument *doc, ...@@ -949,7 +949,7 @@ static void document_activate_cb(G_GNUC_UNUSED GObject *obj, GeanyDocument *doc,
{ {
gchar *new_dir; gchar *new_dir;
if (! fb_follow_path || doc->file_name == NULL) if (! fb_follow_path || doc->file_name == NULL || ! g_path_is_absolute(doc->file_name))
return; return;
new_dir = g_path_get_dirname(doc->file_name); new_dir = g_path_get_dirname(doc->file_name);
......
...@@ -646,7 +646,8 @@ const gchar *vte_get_working_directory(void) ...@@ -646,7 +646,8 @@ const gchar *vte_get_working_directory(void)
*/ */
void vte_cwd(const gchar *filename, gboolean force) void vte_cwd(const gchar *filename, gboolean force)
{ {
if (vte_info.have_vte && (vc->follow_path || force) && filename != NULL) if (vte_info.have_vte && (vc->follow_path || force) &&
filename != NULL && g_path_is_absolute(filename))
{ {
gchar *path; gchar *path;
......
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