Skip to content

Commit

Permalink
Merge pull request #3553 from techee/colorize_fix
Browse files Browse the repository at this point in the history
Fix keyword colorization on filetype change
  • Loading branch information
techee committed Oct 6, 2023
2 parents 87ab25d + 0fbec84 commit c1c4715
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/document.c
Expand Up @@ -2824,6 +2824,9 @@ static void document_load_config(GeanyDocument *doc, GeanyFiletype *type,
editor_set_indentation_guides(doc->editor);
build_menu_update(doc);
queue_colourise(doc);
/* forces re-setting SCI_SETKEYWORDS which seems to be needed with
* Scintilla 5 to colorize them properly */
doc->priv->keyword_hash = 0;
if (type->priv->symbol_list_sort_mode == SYMBOLS_SORT_USE_PREVIOUS)
doc->priv->symbol_list_sort_mode = interface_prefs.symbols_sort_mode;
else
Expand Down

0 comments on commit c1c4715

Please sign in to comment.