aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-07-28 09:48:13 +1000
committerNeil <nyamatongwe@gmail.com>2024-07-28 09:48:13 +1000
commit1cccf5165b891eb95c85932474bb872ab0fbe638 (patch)
tree1772ba118f46766cd81814f69ee413a5556e1e06 /src/CellBuffer.cxx
parent76ef74bc44e201562320906ca18d3add7084ff8b (diff)
downloadscintilla-mirror-1cccf5165b891eb95c85932474bb872ab0fbe638.tar.gz
Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its
nesting depth.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index b0b9d9c39..4985517e0 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -1070,6 +1070,10 @@ void CellBuffer::EndUndoAction() noexcept {
uh->EndUndoAction();
}
+int CellBuffer::UndoSequenceDepth() const noexcept {
+ return uh->UndoSequenceDepth();
+}
+
void CellBuffer::AddUndoAction(Sci::Position token, bool mayCoalesce) {
bool startSequence = false;
uh->AppendAction(ActionType::container, token, nullptr, 0, startSequence, mayCoalesce);