From f39367fc4c7af72caef8e20b1e9b1a038e242b0a Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 16 Feb 2024 09:52:43 +1100 Subject: Implement detach point access with SCI_SETUNDODETACH and SCI_GETUNDODETACH. Write more documentation for undo history. --- src/CellBuffer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 916937845..1c598480f 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -183,10 +183,12 @@ public: int UndoActions() const noexcept; void SetUndoSavePoint(int action) noexcept; int UndoSavePoint() const noexcept; - void SetUndoCurrent(int action); - int UndoCurrent() const noexcept; + void SetUndoDetach(int action) noexcept; + int UndoDetach() const noexcept; void SetUndoTentative(int action) noexcept; int UndoTentative() const noexcept; + void SetUndoCurrent(int action); + int UndoCurrent() const noexcept; int UndoActionType(int action) const noexcept; Sci::Position UndoActionPosition(int action) const noexcept; std::string_view UndoActionText(int action) const noexcept; -- cgit v1.2.3