Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Fri, 06 Oct 2023 10:26:42 UTC Commit: c1c4715486293cc8aa7e5708c98c4ead090ae911 https://github.com/geany/geany/commit/c1c4715486293cc8aa7e5708c98c4ead090ae9...
Log Message: ----------- Merge pull request #3553 from techee/colorize_fix
Fix keyword colorization on filetype change
Modified Paths: -------------- src/document.c
Modified: src/document.c 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -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
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).