diff options
Diffstat (limited to 'src/UndoHistory.h')
-rw-r--r-- | src/UndoHistory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/UndoHistory.h b/src/UndoHistory.h index 13aaca98c..10660a195 100644 --- a/src/UndoHistory.h +++ b/src/UndoHistory.h @@ -110,6 +110,10 @@ public: bool BeforeOrAtSavePoint() const noexcept; bool BeforeReachableSavePoint() const noexcept; bool AfterSavePoint() const noexcept; + + /// The detach point is the last action that was before an inaccessible missing save point. + void SetDetachPoint(int action) noexcept; + [[nodiscard]] int DetachPoint() const noexcept; bool AfterDetachPoint() const noexcept; bool AfterOrAtDetachPoint() const noexcept; |