aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-10-31 01:15:21 +0000
committernyamatongwe <unknown>2001-10-31 01:15:21 +0000
commit584c032d690447ae75f2f39443db451251175d24 (patch)
tree5b32939fe8da449c18167005ab629a30adffa6c1 /src
parent046f1c3e6635f0406de229acc2f63a95f2b8f34b (diff)
downloadscintilla-mirror-584c032d690447ae75f2f39443db451251175d24.tar.gz
Patch from John to ensure selection is maintained in secondary views
upon deletions.
Diffstat (limited to 'src')
-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) {