tuned -- see Text.Range.overlaps(Range);
authorwenzelm
Sat Mar 29 09:24:39 2014 +0100 (2014-03-29)
changeset 5631384d047625f70
parent 56311 42df98d4ab5f
child 56314 9a513737a0b2
tuned -- see Text.Range.overlaps(Range);
src/Pure/PIDE/markup_tree.scala
     1.1 --- a/src/Pure/PIDE/markup_tree.scala	Fri Mar 28 21:17:47 2014 +0100
     1.2 +++ b/src/Pure/PIDE/markup_tree.scala	Sat Mar 29 09:24:39 2014 +0100
     1.3 @@ -118,7 +118,7 @@
     1.4  
     1.5    private def overlapping(range: Text.Range): Branches.T =
     1.6      if (branches.isEmpty ||
     1.7 -        (range.contains(branches.firstKey.start) && range.contains(branches.lastKey.stop)))
     1.8 +        (range.contains(branches.firstKey.start) && branches.lastKey.stop <= range.stop))
     1.9        branches
    1.10      else {
    1.11        val start = Text.Range(range.start)