SF.net SVN: geany: [449] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Jun 16 13:15:38 UTC 2006
Revision: 449
Author: ntrel
Date: 2006-06-16 06:15:28 -0700 (Fri, 16 Jun 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=449&view=rev
Log Message:
-----------
Execute: only save file if the run command uses it
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-06-16 11:17:52 UTC (rev 448)
+++ trunk/ChangeLog 2006-06-16 13:15:28 UTC (rev 449)
@@ -2,6 +2,7 @@
* src/notebook.c, src/notebook.h, src/main.c, src/Makefile.am:
Added currently disabled drag reordering of notebook tabs.
+ * src/callbacks.c: Execute: only save file if the run command uses it.
2006-06-15 Enrico Troeger <enrico.troeger at uvena.de>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2006-06-16 11:17:52 UTC (rev 448)
+++ trunk/src/callbacks.c 2006-06-16 13:15:28 UTC (rev 449)
@@ -1635,7 +1635,10 @@
}
else
{
- if (doc_list[idx].changed) document_save_file(idx);
+ // save the file only if the run command uses it
+ if (doc_list[idx].changed &&
+ strstr(doc_list[idx].file_type->programs->run_cmd, "%f") != NULL)
+ document_save_file(idx);
if (build_run_cmd(idx) == (GPid) 0)
{
msgwin_status_add(_("Failed to execute the terminal program"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list