From 8c49c8ee404fecc110338c08eeed515b63caa93c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Nov 2024 20:59:20 +1100 Subject: 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 --- src/highlighters.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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 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; -- cgit v1.2.3