Revert to fix tests
authorVassiliy.Kudryashov <Vassiliy.Kudryashov@jetbrains.com>
Mon, 6 Oct 2014 17:00:03 +0000 (21:00 +0400)
committerVassiliy.Kudryashov <Vassiliy.Kudryashov@jetbrains.com>
Mon, 6 Oct 2014 17:00:24 +0000 (21:00 +0400)
platform/core-impl/src/com/intellij/openapi/editor/impl/PersistentRangeMarkerUtil.java

index 5a8b633ff95bcc534cc6cbb98e1efd3ffa274e30..2e78c2cc067b475f79b41ea6a61f3f1bfb126861 100644 (file)
@@ -48,11 +48,6 @@ public class PersistentRangeMarkerUtil {
       return false;
     }
 
-    if (rangeMarker.getStartOffset() == rangeMarker.getEndOffset() && e.getOffset() == rangeMarker.getStartOffset() && e.getOldLength() == 0) {
-      //One-point range marker
-      return true;
-    }
-
     if (e.getOffset() >= rangeMarker.getEndOffset() || e.getOffset() + e.getOldLength() <= rangeMarker.getStartOffset()) {
       // Don't perform complex processing if the change doesn't affect target range.
       return false;