summaryrefslogtreecommitdiff
path: root/src/highlighters.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-11-04 20:59:20 +1100
committerMaxime Coste <mawww@kakoune.org>2024-11-04 20:59:20 +1100
commit8c49c8ee404fecc110338c08eeed515b63caa93c (patch)
tree7f6d71782f95fad692c0fc3d73b26c615918d739 /src/highlighters.cc
parent12473583a542dd9f1197fac27121ff4497c0a7de (diff)
Highlight all atoms for the line regardless of has_buffer_range
This changes the behaviour with say line numbers and other line flags, but can be opted out by using final faces Fixes #5253
Diffstat (limited to 'src/highlighters.cc')
-rw-r--r--src/highlighters.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc
index cccccffd..25f93245 100644
--- a/src/highlighters.cc
+++ b/src/highlighters.cc
@@ -506,10 +506,8 @@ std::unique_ptr<Highlighter> create_line_highlighter(HighlighterParameters param
for (auto& atom : *it)
{
column += atom.length();
- if (!atom.has_buffer_range())
- continue;
-
- kak_assert(atom.begin().line == line);
+ if (atom.has_buffer_range() and atom.begin().line != line)
+ break;
apply_face(face)(atom);
}
const ColumnCount remaining = context.context.window().dimensions().column - column;