SF.net SVN: geany: [2751] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Jul 3 17:21:31 UTC 2008
Revision: 2751
http://geany.svn.sourceforge.net/geany/?rev=2751&view=rev
Author: ntrel
Date: 2008-07-03 10:21:29 -0700 (Thu, 03 Jul 2008)
Log Message:
-----------
Ensure all opened documents are colourised before being drawn
(should happen anyway in document_set_filetype(), but just in case).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-07-03 17:13:34 UTC (rev 2750)
+++ trunk/ChangeLog 2008-07-03 17:21:29 UTC (rev 2751)
@@ -11,6 +11,9 @@
* src/editor.c:
Fix possible segfault for XML tag completion when no '<' brace could
be found.
+ * src/document.c:
+ Ensure all opened documents are colourised before being drawn
+ (should happen anyway in document_set_filetype(), but just in case).
2008-07-03 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2008-07-03 17:13:34 UTC (rev 2750)
+++ trunk/src/document.c 2008-07-03 17:21:29 UTC (rev 2751)
@@ -1010,6 +1010,7 @@
/* add the text to the ScintillaObject */
sci_set_readonly(doc->sci, FALSE); /* to allow replacing text */
sci_set_text(doc->sci, filedata.data); /* NULL terminated data */
+ queue_colourise(doc); /* Ensure the document gets colourised. */
/* detect & set line endings */
editor_mode = utils_get_line_endings(filedata.data, filedata.len);
@@ -1049,9 +1050,6 @@
{ /* reloading */
document_undo_clear(doc);
- /* Ensure the document gets colourised.
- * (The text could have changed without typenames changing.) */
- queue_colourise(doc);
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