diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-04-19 21:15:36 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-04-19 21:15:36 +0100 |
| commit | bee2180da78735de6db8173c4c6c9970e546d5c9 (patch) | |
| tree | 3c977af05d207da3cdcd957421f049f68fdacb11 /src | |
| parent | 0d8b850bc3246c6f23f498da153807c48b4ad809 (diff) | |
Do not try to split non range atoms in column highlighter
That means we wont have a very nice interaction between show_whitespaces
and column highlighters, but thats the simplest fix for now, if we want
a better behaviour we need to introduce a way to know that a replaced
range is splittable (meaning it means to have the same amount of columns
as the range it replaces)
Fixes #1275
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
