Fix unneeded and wrong splitting of display atom during wrapping
This commit is contained in:
parent
e63156bcfb
commit
a5d4dbc16e
|
@ -682,8 +682,6 @@ struct WrapHighlighter : Highlighter
|
||||||
|
|
||||||
if (coord > atom_it->begin())
|
if (coord > atom_it->begin())
|
||||||
atom_it = ++line.split(atom_it, coord);
|
atom_it = ++line.split(atom_it, coord);
|
||||||
if (buffer.next(coord) < atom_it->end())
|
|
||||||
atom_it = line.split(atom_it, buffer.next(coord));
|
|
||||||
|
|
||||||
DisplayLine new_line{ AtomList{ atom_it, line.end() } };
|
DisplayLine new_line{ AtomList{ atom_it, line.end() } };
|
||||||
line.erase(atom_it, line.end());
|
line.erase(atom_it, line.end());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user