equal
deleted
inserted
replaced
280 text_offset: Text.Offset, pos: Position.T): Boolean = |
280 text_offset: Text.Offset, pos: Position.T): Boolean = |
281 { |
281 { |
282 pos match { |
282 pos match { |
283 case Position.Item_Id(id, range) if range.start > 0 => |
283 case Position.Item_Id(id, range) if range.start > 0 => |
284 snapshot.find_command(id) match { |
284 snapshot.find_command(id) match { |
285 case Some((node, command)) if snapshot.version.nodes(command.node_name) eq node => |
285 case Some((node, command)) if snapshot.get_node(command.node_name) eq node => |
286 node.command_start(command) match { |
286 node.command_start(command) match { |
287 case Some(start) => text_offset == start + command.chunk.decode(range.start) |
287 case Some(start) => text_offset == start + command.chunk.decode(range.start) |
288 case None => false |
288 case None => false |
289 } |
289 } |
290 case _ => false |
290 case _ => false |