aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UndoHistory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UndoHistory.cxx')
-rw-r--r--src/UndoHistory.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/UndoHistory.cxx b/src/UndoHistory.cxx
index 810cd9a14..aac802dfd 100644
--- a/src/UndoHistory.cxx
+++ b/src/UndoHistory.cxx
@@ -474,6 +474,10 @@ Sci::Position UndoHistory::Position(int action) const noexcept {
return actions.positions.SignedValueAt(action);
}
+Sci::Position UndoHistory::Length(int action) const noexcept {
+ return actions.lengths.SignedValueAt(action);
+}
+
std::string_view UndoHistory::Text(int action) noexcept {
// Assumes first call after any changes is for action 0.
// TODO: may need to invalidate memory in other circumstances