diff options
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 068bf55f..14507528 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -348,6 +348,7 @@ class UndoGroupOptimizer { ByteCount overlaps_len = it->content.length() - pos; it->content = it->content.substr(0, pos); + it_next->coord = advance(it_next->coord, it_next->content.substr(0, overlaps_len)); it_next->content = it_next->content.substr(overlaps_len); ++it, ++it_next; progress = true; |
