SF.net SVN: geany-plugins:[2248] trunk/geany-plugins/debugger/src/callbacks .c
cesspit at users.sourceforge.net
cesspit at xxxxx
Fri Oct 7 19:13:24 UTC 2011
Revision: 2248
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2248&view=rev
Author: cesspit
Date: 2011-10-07 19:13:24 +0000 (Fri, 07 Oct 2011)
Log Message:
-----------
debugger: fixing a bug with modifying a not saved file while debugger is loaded
Modified Paths:
--------------
trunk/geany-plugins/debugger/src/callbacks.c
Modified: trunk/geany-plugins/debugger/src/callbacks.c
===================================================================
--- trunk/geany-plugins/debugger/src/callbacks.c 2011-10-07 15:55:30 UTC (rev 2247)
+++ trunk/geany-plugins/debugger/src/callbacks.c 2011-10-07 19:13:24 UTC (rev 2248)
@@ -224,7 +224,7 @@
}
case SCN_MODIFIED:
{
- if(((SC_MOD_INSERTTEXT & nt->modificationType) || (SC_MOD_DELETETEXT && nt->modificationType)) && nt->linesAdded)
+ if(((SC_MOD_INSERTTEXT & nt->modificationType) || (SC_MOD_DELETETEXT && nt->modificationType)) && editor->document->file_name && nt->linesAdded)
{
int line = sci_get_line_from_position(editor->sci, nt->position) + 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list