diff --git a/ChangeLog b/ChangeLog index 1d921474..0783783f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2007-03-13 Enrico Tröger * 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 diff --git a/src/highlighting.c b/src/highlighting.c index 92942505..cc9bf293 100644 --- a/src/highlighting.c +++ b/src/highlighting.c @@ -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);