From ff25b2770cd96a933e3018a3292d46f9c26e1272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 13 Mar 2007 17:39:09 +0000 Subject: [PATCH] Init the default styles before first usage. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1392 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 1 + src/highlighting.c | 3 +++ 2 files changed, 4 insertions(+) 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);