From 38d2856d341358bf9c691157ae0ca2e8960e35df Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 Feb 2024 14:17:08 +1100 Subject: Perform validation of undo state when SCI_SETUNDOCURRENT called, setting status when invalid. --- src/CellBuffer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CellBuffer.cxx') 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 { -- cgit v1.2.3