From 1cccf5165b891eb95c85932474bb872ab0fbe638 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 28 Jul 2024 09:48:13 +1000 Subject: Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its nesting depth. --- src/Document.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 3ae8964ba..88b876ebd 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1543,6 +1543,10 @@ Sci::Position Document::Redo() { return newPos; } +int Document::UndoSequenceDepth() const noexcept { + return cb.UndoSequenceDepth(); +} + void Document::DelChar(Sci::Position pos) { DeleteChars(pos, LenChar(pos)); } -- cgit v1.2.3