diff --git a/moo/mooedit/mootextview.c b/moo/mooedit/mootextview.c index 855d2296..4e74ecd5 100644 --- a/moo/mooedit/mootextview.c +++ b/moo/mooedit/mootextview.c @@ -2580,13 +2580,16 @@ moo_text_view_set_lang_by_id (MooTextView *view, MooEditor *editor; MooLangMgr *mgr; MooLang *lang; + MooTextStyleScheme *scheme; editor = moo_editor_instance (); g_return_if_fail (editor != NULL); mgr = moo_editor_get_lang_mgr (editor); lang = moo_lang_mgr_get_lang (mgr, lang_id); + scheme = _moo_lang_mgr_get_active_scheme (mgr); + moo_text_view_set_style_scheme (view, scheme); moo_text_view_set_lang (view, lang); }