Use the document's real path when the VTE setting 'Follow the path of the current file' is used to prevent unnecessary directory changes when symlinks are used (reported by Dominic Hopf).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3532 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-02-01 18:03:19 +00:00
parent b2eeefc919
commit c4897ee665
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2009-02-01 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c, src/document.c:
Use the document's real path when the VTE setting 'Follow the path of
the current file' is used to prevent unnecessary directory changes
when symlinks are used (reported by Dominic Hopf).
2009-01-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/plugins.c, src/plugindata.h, src/utils.c, plugins/filebrowser.c,

View File

@ -730,7 +730,7 @@ on_notebook1_switch_page_after (GtkNotebook *notebook,
document_check_disk_status(doc, FALSE);
#ifdef HAVE_VTE
vte_cwd(DOC_FILENAME(doc), FALSE);
vte_cwd((doc->real_path != NULL) ? doc->real_path : doc->file_name, FALSE);
#endif
g_signal_emit_by_name(geany_object, "document-activate", doc);

View File

@ -1790,7 +1790,7 @@ gboolean document_save_file(GeanyDocument *doc, gboolean force)
msgwin_status_add(_("File %s saved."), doc->file_name);
ui_update_statusbar(doc, -1);
#ifdef HAVE_VTE
vte_cwd(doc->file_name, FALSE);
vte_cwd((doc->real_path != NULL) ? doc->real_path : doc->file_name, FALSE);
#endif
}
g_free(locale_filename);