aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-06-17 11:07:15 +1000
committerNeil <nyamatongwe@gmail.com>2020-06-17 11:07:15 +1000
commite25e00630c93570054113ea082dbf5184bde41ac (patch)
tree2f27be2e0f5a5890aaa4e38a01663c34248922a6 /src
parent1f23423442a85280b935f7a65160355b8695342b (diff)
downloadscintilla-mirror-e25e00630c93570054113ea082dbf5184bde41ac.tar.gz
Backport: Simplify calls when known to be leaving a save point.
Backport of changeset 8309:adedefb346ef.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx4
1 files changed, 2 insertions, 2 deletions
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(