aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 691a811dd..6dde7eb84 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -1160,12 +1160,12 @@ int CellBuffer::UndoSavePoint() const noexcept {
return uh->SavePoint();
}
-void CellBuffer::SetUndoCurrent(int action) {
- uh->SetCurrent(action, Length());
+void CellBuffer::SetUndoDetach(int action) noexcept {
+ uh->SetDetachPoint(action);
}
-int CellBuffer::UndoCurrent() const noexcept {
- return uh->Current();
+int CellBuffer::UndoDetach() const noexcept {
+ return uh->DetachPoint();
}
void CellBuffer::SetUndoTentative(int action) noexcept {
@@ -1176,6 +1176,14 @@ int CellBuffer::UndoTentative() const noexcept {
return uh->TentativePoint();
}
+void CellBuffer::SetUndoCurrent(int action) {
+ uh->SetCurrent(action, Length());
+}
+
+int CellBuffer::UndoCurrent() const noexcept {
+ return uh->Current();
+}
+
int CellBuffer::UndoActionType(int action) const noexcept {
return uh->Type(action);
}