summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/highlighters.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc
index d2daa085..ee772469 100644
--- a/src/highlighters.cc
+++ b/src/highlighters.cc
@@ -1840,6 +1840,9 @@ struct ForwardHighlighterApplier
cur_atom = cur_line->begin();
}
+ if (region_lines.empty())
+ return;
+
region_display.compute_range();
highlighter.highlight(context, region_display, {begin, end});