From 6bde15bf95c990e0d254216cf97b626299866772 Mon Sep 17 00:00:00 2001 From: Tito Date: Wed, 10 Jan 2024 18:35:32 -0300 Subject: [PATCH] fix missing check for multiline highlighting --- plugin/documents.py | 2 ++ 1 file changed, 2 insertions(+) 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)