diff --git a/plugin/documents.py b/plugin/documents.py index 49653a875..4ad29c723 100644 --- a/plugin/documents.py +++ b/plugin/documents.py @@ -820,6 +820,8 @@ def render_highlights_on_main_thread() -> None: if not regions: continue kind, multiline = tup + if multiline and not userprefs().show_multiline_document_highlights: + continue key = self._highlights_key(kind, multiline) flags = flags_multi if multiline else flags_single self.view.add_regions(key, regions, scope=DOCUMENT_HIGHLIGHT_KIND_SCOPES[kind], flags=flags)