Init the default styles before first usage.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1392 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-03-13 17:39:09 +00:00
parent fe40f61740
commit ff25b2770c
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
2007-03-13 Enrico Tröger <enrico.troeger@uvena.de>
* src/highlighting.c: Fixed wrong margin colours for filetype All/None.
* src/highlighting.c: Init the default styles before first usage.
2007-03-13 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -1977,6 +1977,9 @@ void styleset_none(ScintillaObject *sci)
{
SSM(sci, SCI_SETLEXER, SCLEX_NULL, 0);
if (style_sets[GEANY_FILETYPES_ALL].styling == NULL)
styleset_common_init();
set_sci_style(sci, STYLE_DEFAULT, GEANY_FILETYPES_ALL, GCS_DEFAULT);
styleset_common(sci, 5);