diff --git a/src/highlighters.cc b/src/highlighters.cc index c1969a94..0b117755 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -573,7 +573,7 @@ HighlighterAndId create_column_highlighter(HighlighterParameters params) { for (auto atom_it = line.begin(); atom_it != line.end(); ++atom_it) { - if (!atom_it->has_buffer_range()) + if (atom_it->type() != DisplayAtom::Range) continue; kak_assert(atom_it->begin().line == buf_line); diff --git a/test/regression/1275-replaced-range-split/cmd b/test/regression/1275-replaced-range-split/cmd new file mode 100644 index 00000000..1e0db3c1 --- /dev/null +++ b/test/regression/1275-replaced-range-split/cmd @@ -0,0 +1 @@ +:addhl show_whitespacesi:addhl column 1 redA diff --git a/test/regression/1275-replaced-range-split/in b/test/regression/1275-replaced-range-split/in new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/regression/1275-replaced-range-split/in @@ -0,0 +1 @@ + diff --git a/test/regression/1275-replaced-range-split/out b/test/regression/1275-replaced-range-split/out new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/regression/1275-replaced-range-split/out @@ -0,0 +1 @@ +