diff options
author | Neil <nyamatongwe@gmail.com> | 2024-07-28 09:48:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-07-28 09:48:13 +1000 |
commit | 1cccf5165b891eb95c85932474bb872ab0fbe638 (patch) | |
tree | 1772ba118f46766cd81814f69ee413a5556e1e06 /src/Document.h | |
parent | 76ef74bc44e201562320906ca18d3add7084ff8b (diff) | |
download | scintilla-mirror-1cccf5165b891eb95c85932474bb872ab0fbe638.tar.gz |
Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its
nesting depth.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index efb1ae6d6..fa1c3fe42 100644 --- a/src/Document.h +++ b/src/Document.h @@ -397,6 +397,7 @@ public: bool IsCollectingUndo() const noexcept { return cb.IsCollectingUndo(); } void BeginUndoAction(bool coalesceWithPrior=false) noexcept { cb.BeginUndoAction(coalesceWithPrior); } void EndUndoAction() noexcept { cb.EndUndoAction(); } + int UndoSequenceDepth() const noexcept; void AddUndoAction(Sci::Position token, bool mayCoalesce) { cb.AddUndoAction(token, mayCoalesce); } void SetSavePoint(); bool IsSavePoint() const noexcept { return cb.IsSavePoint(); } |