aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a39e7096f..cb374cc01 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2078,7 +2078,7 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) {
if (braces[1] > mh.position) {
braces[1] += mh.length;
}
- } else { // SC_MOD_DELETETEXT
+ } else if (mh.modificationType & SC_MOD_DELETETEXT) {
int endPos = mh.position + mh.length;
if (currentPos > mh.position) {
if (currentPos > endPos) {