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

Create a new tm_source_file object if a file is renamed, otherwise tagmanager won't work correctly.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@507 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 805bdf96
......@@ -20,6 +20,9 @@
* src/utils.c: Added function is_opening_brace().
* src/sci_cb.c:
Use is_opening_brace() for better handling of calltips.
* src/callbacks.c:
Create a new tm_source_file object if a file is renamed, otherwise
tagmanager won't work correctly.
2006-06-28 Enrico Tröger <enrico.troeger@uvena.de>
......
......@@ -892,7 +892,12 @@ on_file_save_dialog_response (GtkDialog *dialog,
}
gtk_widget_hide(app->save_filesel);
if (doc_list[idx].file_name) g_free(doc_list[idx].file_name);
if (doc_list[idx].file_name)
{ // create a new tm_source_file object otherwise tagmanager won't work correctly
tm_workspace_remove_object(doc_list[idx].tm_file, TRUE);
doc_list[idx].tm_file = NULL;
g_free(doc_list[idx].file_name);
}
doc_list[idx].file_name = new_filename;
utils_replace_filename(idx);
......
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