Skip to content

Commit

Permalink
fix missing check for multiline highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout authored Jan 10, 2024
1 parent ffe8f91 commit 6bde15b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bde15b

Please sign in to comment.