Fix unneeded and wrong splitting of display atom during wrapping

This commit is contained in:
Maxime Coste 2017-05-07 15:44:04 +01:00
parent e63156bcfb
commit a5d4dbc16e

View File

@ -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());