diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-11-04 20:59:20 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-11-04 20:59:20 +1100 |
| commit | 8c49c8ee404fecc110338c08eeed515b63caa93c (patch) | |
| tree | 7f6d71782f95fad692c0fc3d73b26c615918d739 /src/highlighters.cc | |
| parent | 12473583a542dd9f1197fac27121ff4497c0a7de (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.cc | 6 |
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; |
