From 584c032d690447ae75f2f39443db451251175d24 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 31 Oct 2001 01:15:21 +0000 Subject: Patch from John to ensure selection is maintained in secondary views upon deletions. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3