Commit MetaInfo

Revision47b58c5fbc6143cd7a3449df57d815e1ceb63a44 (tree)
Time2018-01-17 00:54:03
Author <exeal@user...>

Log Message

fixed: viewer.locations.updateTextHit free function.

Change Summary

Incremental Difference

diff -r e8e14d478ece -r 47b58c5fbc61 ascension/src/viewer/visual-locations.cpp
--- a/ascension/src/viewer/visual-locations.cpp Wed Jan 10 00:13:19 2018 +0900
+++ b/ascension/src/viewer/visual-locations.cpp Wed Jan 17 00:54:03 2018 +0900
@@ -567,7 +567,7 @@
567567 const auto& b = *boost::const_begin(change.erasedRegion()), e = *boost::const_end(change.erasedRegion());
568568 if(h.characterIndex() >= b && h.characterIndex() < e) { // (D-2) or (D-3)
569569 if(insertionPosition(document, h) < e) // (D-2)
570- h = TextHit::leading(e);
570+ h = TextHit::leading(b);
571571 else { // (D-3)
572572 kernel::DocumentCharacterIterator i(document, b);
573573 h = TextHit::trailing((--i).tell());
Show on old repository browser