Move symbols_global_tags_loaded() out of styleset_common().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2285 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
cc1ac84b3f
commit
d705dde953
@ -387,10 +387,6 @@ static void styleset_common_init(gint ft_id, GKeyFile *config, GKeyFile *config_
|
||||
|
||||
static void styleset_common(ScintillaObject *sci, gint style_bits, filetype_id ft_id)
|
||||
{
|
||||
// load global tags file for autocompletion, calltips, etc.
|
||||
if (ft_id < GEANY_FILETYPES_ALL)
|
||||
symbols_global_tags_loaded(ft_id);
|
||||
|
||||
SSM(sci, SCI_STYLECLEARALL, 0, 0);
|
||||
|
||||
// caret colour and width
|
||||
@ -2949,7 +2945,11 @@ void highlighting_init_styles(gint filetype_idx, GKeyFile *config, GKeyFile *con
|
||||
|
||||
void highlighting_set_styles(ScintillaObject *sci, gint filetype_idx)
|
||||
{
|
||||
filetypes_load_config(filetype_idx);
|
||||
filetypes_load_config(filetype_idx); /* load filetypes.ext */
|
||||
|
||||
/* load tags files (some lexers highlight global typenames) */
|
||||
if (filetype_idx < GEANY_FILETYPES_ALL)
|
||||
symbols_global_tags_loaded(filetype_idx);
|
||||
|
||||
switch (filetype_idx)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user