diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-26 21:33:49 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-26 21:33:49 +1100 |
| commit | 2f8100b36240bdf0873172bf9cd1ac86f103275b (patch) | |
| tree | 70599c76d750cd13c84da76474bd3f091d05e3f7 /src/normal.cc | |
| parent | d9af1e8f34ac2e4223ded8c55c12987b741c9d4d (diff) | |
| parent | 7512f5eae63e721a7abb51985cbecaf41af94121 (diff) | |
Merge remote-tracking branch 'lenormf/fix-3226'
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc index 1b287e5f..fd46dab9 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -512,7 +512,7 @@ BufferCoord apply_diff(Buffer& buffer, BufferCoord pos, StringView before, Strin lines_after.begin(), (int)lines_after.size()); auto byte_count = [](auto&& lines, int first, int count) { - return std::accumulate(&lines[first], &lines[first+count], 0_byte, + return std::accumulate(lines.begin() + first, lines.begin() + first + count, 0_byte, [](ByteCount l, StringView s) { return l + s.length(); }); }; |
