author | wenzelm |
Thu, 02 Sep 2010 23:17:13 +0200 | |
changeset 39041 | 6c8d0ea646a6 |
parent 39040 | e3799716b733 |
child 39042 | 470fd769ae53 |
--- a/src/Pure/General/position.scala Thu Sep 02 14:19:15 2010 +0200 +++ b/src/Pure/General/position.scala Thu Sep 02 23:17:13 2010 +0200 @@ -24,7 +24,7 @@ def unapply(pos: T): Option[Text.Range] = (Offset.unapply(pos), End_Offset.unapply(pos)) match { case (Some(start), Some(stop)) if start <= stop => Some(Text.Range(start, stop)) - case (Some(start), None) => Some(Text.Range(start)) + case (Some(start), None) => Some(Text.Range(start, start + 1)) case _ => None } }