diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-05-07 15:44:04 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-07 16:26:14 +0100 |
| commit | a5d4dbc16e84258a16767bbf47e14e8db28f8649 (patch) | |
| tree | 9d0ff83933c1e5941318801ba0072b192ac696f7 /src | |
| parent | e63156bcfb58d20465f1795ada4b9309d2793505 (diff) | |
Fix unneeded and wrong splitting of display atom during wrapping
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 2a0d458a..e46131f2 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -682,8 +682,6 @@ struct WrapHighlighter : Highlighter if (coord > atom_it->begin()) 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() } }; line.erase(atom_it, line.end()); |
