From a5d4dbc16e84258a16767bbf47e14e8db28f8649 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 7 May 2017 15:44:04 +0100 Subject: [PATCH] Fix unneeded and wrong splitting of display atom during wrapping --- src/highlighters.cc | 2 -- 1 file changed, 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());