Set default highlighting style for filetype None to get it also inverted if invert_all is set.

Reset all previously defined styles when switching filetype to None.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1378 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-03-09 15:38:31 +00:00
parent 9fff34a460
commit b88cd0a597
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,11 @@
and unreachable code).
* src/sci_cb.c: Auto completion of multi line comments is now (again)
configurable with the auto complete constructs option.
* src/highlighting.c:
Set default highlighting style for filetype None to get it also
inverted if invert_all is set.
Reset all previously defined styles when switching filetype to None.
2007-03-09 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -1976,6 +1976,11 @@ void styleset_none(ScintillaObject *sci)
SSM (sci, SCI_SETLEXER, SCLEX_NULL, 0);
SSM(sci, SCI_SETWORDCHARS, 0, (sptr_t) common_style_set.wordchars);
SSM(sci, SCI_STYLESETFORE, STYLE_DEFAULT, invert(0x000000));
SSM(sci, SCI_STYLESETBACK, STYLE_DEFAULT, invert(0xffffff));
SSM(sci, SCI_STYLECLEARALL, 0, 0);
}