Introduce an optional primary field to ExcerptRange

This commit is contained in:
Antonio Scandurra 2022-06-08 12:23:12 +02:00
parent ffb75b0f02
commit 15b13fe511
4 changed files with 66 additions and 8 deletions

View file

@ -496,9 +496,11 @@ mod tests {
[
ExcerptRange {
context: Point::new(0, 0)..Point::new(1, 4),
primary: None,
},
ExcerptRange {
context: Point::new(2, 0)..Point::new(3, 2),
primary: None,
},
],
cx,