aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-02-16 09:52:43 +1100
committerNeil <nyamatongwe@gmail.com>2024-02-16 09:52:43 +1100
commitf39367fc4c7af72caef8e20b1e9b1a038e242b0a (patch)
treeb5f2fddf5ad5d2b79e72e93ebefa8cf8e7abe4d4 /src/Document.cxx
parent1681b7fc9da6d455ab73a96816a47f6ba263017c (diff)
downloadscintilla-mirror-f39367fc4c7af72caef8e20b1e9b1a038e242b0a.tar.gz
Implement detach point access with SCI_SETUNDODETACH and SCI_GETUNDODETACH.
Write more documentation for undo history.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 8ab837daa..5f77ec2de 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -363,12 +363,12 @@ int Document::UndoSavePoint() const noexcept {
return cb.UndoSavePoint();
}
-void Document::SetUndoCurrent(int action) {
- cb.SetUndoCurrent(action);
+void Document::SetUndoDetach(int action) noexcept {
+ cb.SetUndoDetach(action);
}
-int Document::UndoCurrent() const noexcept {
- return cb.UndoCurrent();
+int Document::UndoDetach() const noexcept {
+ return cb.UndoDetach();
}
void Document::SetUndoTentative(int action) noexcept {
@@ -379,6 +379,14 @@ int Document::UndoTentative() const noexcept {
return cb.UndoTentative();
}
+void Document::SetUndoCurrent(int action) {
+ cb.SetUndoCurrent(action);
+}
+
+int Document::UndoCurrent() const noexcept {
+ return cb.UndoCurrent();
+}
+
int Document::UndoActionType(int action) const noexcept {
return cb.UndoActionType(action);
}