diff options
author | Neil <nyamatongwe@gmail.com> | 2020-06-17 11:07:15 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-06-17 11:07:15 +1000 |
commit | f0b2e8e7fc6d702dfa37f7d190d2556eb74d2fd6 (patch) | |
tree | f718e1ba587f667ef72a085d4d4246ecaaf1a7be | |
parent | 5fc1282d6d4a18f8018bbdd769991eb93171757a (diff) | |
download | scintilla-mirror-f0b2e8e7fc6d702dfa37f7d190d2556eb74d2fd6.tar.gz |
Simplify calls when known to be leaving a save point.
-rw-r--r-- | src/Document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index f17e4f837..dcb26acdf 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1221,7 +1221,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 @@ -1273,7 +1273,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( |