SF.net SVN: geany:[3098] trunk/src/highlighting.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Oct 15 14:14:49 UTC 2008
Revision: 3098
http://geany.svn.sourceforge.net/geany/?rev=3098&view=rev
Author: eht16
Date: 2008-10-15 14:14:48 +0000 (Wed, 15 Oct 2008)
Log Message:
-----------
Fix again colouring for filetype None.
Modified Paths:
--------------
trunk/src/highlighting.c
Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c 2008-10-15 14:14:31 UTC (rev 3097)
+++ trunk/src/highlighting.c 2008-10-15 14:14:48 UTC (rev 3098)
@@ -1910,13 +1910,10 @@
{
SSM(sci, SCI_SETLEXER, SCLEX_NULL, 0);
- styleset_common(sci);
-
+ /* we need to set STYLE_DEFAULT before we call SCI_STYLECLEARALL in styleset_common() */
set_sci_style(sci, STYLE_DEFAULT, GEANY_FILETYPES_NONE, GCS_DEFAULT);
- /* we need this to clear any other styles than STYLE_DEFAULT, otherwise the
- * "invert_all" option breaks */
- SSM(sci, SCI_STYLECLEARALL, 0, 0);
+ styleset_common(sci);
SSM(sci, SCI_SETWORDCHARS, 0, (sptr_t) common_style_set.wordchars);
SSM(sci, SCI_SETWHITESPACECHARS, 0, (sptr_t) whitespace_chars);
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