Commit MetaInfo

Revisione8e14d478ece8c18e4eb438e1652b9307cc493fa (tree)
Time2018-01-10 00:13:19
Author <exeal@user...>

Log Message

.

Change Summary

Incremental Difference

diff -r a29b7837b494 -r e8e14d478ece ascension/src/kernel/undo.cpp
--- a/ascension/src/kernel/undo.cpp Fri Oct 27 00:20:30 2017 +0900
+++ b/ascension/src/kernel/undo.cpp Wed Jan 10 00:13:19 2018 +0900
@@ -745,8 +745,8 @@
745745 firstLine.text_.replace(offsetInLine(beginning), erasedLength, temp);
746746 }
747747 } catch(...) {
748- const ascension::detail::GapVector<Line*>::const_iterator b(std::begin(lines_) + kernel::line(end) + 1);
749- const ascension::detail::GapVector<Line*>::const_iterator e(b + allocatedLines.size());
748+ const auto b(std::next(std::begin(lines_), kernel::line(end) + 1));
749+ const auto e(std::next(b, allocatedLines.size()));
750750 std::for_each(b, e, std::default_delete<Line>());
751751 lines_.erase(b, e);
752752 throw;
@@ -763,7 +763,7 @@
763763
764764 // 5. remove lines to erase
765765 if(!boost::empty(region)) {
766- const auto b(std::begin(lines_) + kernel::line(beginning) + 1), e(std::begin(lines_) + kernel::line(end) + 1);
766+ const auto b(std::next(std::begin(lines_), kernel::line(beginning) + 1)), e(std::next(std::begin(lines_), kernel::line(end) + 1));
767767 std::for_each(b, e, std::default_delete<Line>());
768768 lines_.erase(b, e);
769769 }
Show on old repository browser