From e25e00630c93570054113ea082dbf5184bde41ac Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Jun 2020 11:07:15 +1000 Subject: Backport: Simplify calls when known to be leaving a save point. Backport of changeset 8309:adedefb346ef. --- src/Document.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index be3c01fa3..3143e7e1f 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1224,7 +1224,7 @@ bool Document::DeleteChars(Sci::Position pos, Sci::Position len) { bool startSequence = false; const char *text = cb.DeleteChars(pos, len, startSequence); if (startSavePoint && cb.IsCollectingUndo()) - NotifySavePoint(!startSavePoint); + NotifySavePoint(false); if ((pos < LengthNoExcept()) || (pos == 0)) ModifiedAt(pos); else @@ -1276,7 +1276,7 @@ Sci::Position Document::InsertString(Sci::Position position, const char *s, Sci: bool startSequence = false; const char *text = cb.InsertString(position, s, insertLength, startSequence); if (startSavePoint && cb.IsCollectingUndo()) - NotifySavePoint(!startSavePoint); + NotifySavePoint(false); ModifiedAt(position); NotifyModified( DocModification( -- cgit v1.2.3