aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-02-15 14:17:08 +1100
committerNeil <nyamatongwe@gmail.com>2024-02-15 14:17:08 +1100
commit38d2856d341358bf9c691157ae0ca2e8960e35df (patch)
treea1a187630421e954b65181bb2d2fb4a58d2549ff /src/CellBuffer.cxx
parenta6a2fe933e0103464c1a357f987ad10e3bcf6622 (diff)
downloadscintilla-mirror-38d2856d341358bf9c691157ae0ca2e8960e35df.tar.gz
Perform validation of undo state when SCI_SETUNDOCURRENT called, setting status
when invalid.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index b3111914e..691a811dd 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -1160,8 +1160,8 @@ int CellBuffer::UndoSavePoint() const noexcept {
return uh->SavePoint();
}
-void CellBuffer::SetUndoCurrent(int action) noexcept {
- uh->SetCurrent(action);
+void CellBuffer::SetUndoCurrent(int action) {
+ uh->SetCurrent(action, Length());
}
int CellBuffer::UndoCurrent() const noexcept {