Fix regression: clear all styles for filetype None to not break the 'invert_all' option.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3071 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-10-12 17:51:38 +00:00
parent 42cd5f1520
commit ca464c2c8b
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-10-12 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/highlighting.c:
Fix regression: clear all styles for filetype None to not break
the 'invert_all' option.
2008-10-12 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/search.c:

View File

@ -1914,6 +1914,10 @@ static void styleset_none(ScintillaObject *sci)
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);
SSM(sci, SCI_SETWORDCHARS, 0, (sptr_t) common_style_set.wordchars);
SSM(sci, SCI_SETWHITESPACECHARS, 0, (sptr_t) whitespace_chars);
}