Fix using common styleset for filetype None.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3030 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
6d4068f7b3
commit
604a981482
@ -3,6 +3,8 @@
|
||||
* HACKING, doc/Makefile.am:
|
||||
Reformat HACKING as true reStructuredText.
|
||||
Add 'make hacking-doc' target to generate hacking.html.
|
||||
* src/highlighting.c:
|
||||
Fix using common styleset for filetype None.
|
||||
|
||||
|
||||
2008-09-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
@ -611,6 +611,8 @@ static void assign_global_and_user_keywords(ScintillaObject *sci,
|
||||
static void
|
||||
apply_filetype_properties(ScintillaObject *sci, gint lexer, filetype_id ft_id)
|
||||
{
|
||||
g_assert(ft_id != GEANY_FILETYPES_NONE);
|
||||
|
||||
SSM(sci, SCI_SETLEXER, lexer, 0);
|
||||
|
||||
SSM(sci, SCI_SETWORDCHARS, 0, (sptr_t) style_sets[ft_id].wordchars);
|
||||
@ -1906,8 +1908,12 @@ static void styleset_docbook(ScintillaObject *sci)
|
||||
|
||||
static void styleset_none(ScintillaObject *sci)
|
||||
{
|
||||
const filetype_id ft_id = GEANY_FILETYPES_NONE;
|
||||
|
||||
SSM(sci, SCI_SETLEXER, SCLEX_NULL, 0);
|
||||
|
||||
styleset_common(sci, ft_id);
|
||||
|
||||
set_sci_style(sci, STYLE_DEFAULT, GEANY_FILETYPES_NONE, GCS_DEFAULT);
|
||||
|
||||
SSM(sci, SCI_SETWORDCHARS, 0, (sptr_t) common_style_set.wordchars);
|
||||
|
Loading…
x
Reference in New Issue
Block a user