SF.net SVN: geany: [2578] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed May 14 11:58:07 UTC 2008
Revision: 2578
http://geany.svn.sourceforge.net/geany/?rev=2578&view=rev
Author: ntrel
Date: 2008-05-14 04:58:05 -0700 (Wed, 14 May 2008)
Log Message:
-----------
Recolourise the document in document_reload_file() because the
text may have changed (should fix #1948857).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-14 11:31:07 UTC (rev 2577)
+++ trunk/ChangeLog 2008-05-14 11:58:05 UTC (rev 2578)
@@ -3,6 +3,9 @@
* src/templates.c:
Sort custom template file menu items by filetype, with None
filetypes first.
+ * src/document.c:
+ Recolourise the document in document_reload_file() because the
+ text may have changed (should fix #1948857).
2008-05-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2008-05-14 11:31:07 UTC (rev 2577)
+++ trunk/src/document.c 2008-05-14 11:58:05 UTC (rev 2578)
@@ -1114,6 +1114,9 @@
else
{ /* reloading */
document_undo_clear(idx);
+ /* Recolour the document here because the text could have changed but the
+ * filetype hasn't */
+ sci_colourise(doc_list[idx].sci, 0, -1);
use_ft = ft;
}
/* update taglist, typedef keywords and build menu if necessary */
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