Fix typo in Excerpt::contains
(#36621)
Follow-up to #36524 Release Notes: - N/A
This commit is contained in:
parent
b0bef3a9a2
commit
739e4551da
1 changed files with 13 additions and 14 deletions
|
@ -6998,8 +6998,7 @@ impl Excerpt {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn contains(&self, anchor: &Anchor) -> bool {
|
fn contains(&self, anchor: &Anchor) -> bool {
|
||||||
anchor.buffer_id == None
|
(anchor.buffer_id == None || anchor.buffer_id == Some(self.buffer_id))
|
||||||
|| anchor.buffer_id == Some(self.buffer_id)
|
|
||||||
&& self
|
&& self
|
||||||
.range
|
.range
|
||||||
.context
|
.context
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue