Fix anchor_in_excerpt on replaced excerpts (#28880)
Release Notes: - N/A
This commit is contained in:
parent
7c7f69f4c5
commit
7bdde8f14f
1 changed files with 1 additions and 0 deletions
|
@ -5170,6 +5170,7 @@ impl MultiBufferSnapshot {
|
|||
excerpt_id: ExcerptId,
|
||||
text_anchor: text::Anchor,
|
||||
) -> Option<Anchor> {
|
||||
let excerpt_id = self.latest_excerpt_id(excerpt_id);
|
||||
let locator = self.excerpt_locator_for_id(excerpt_id);
|
||||
let mut cursor = self.excerpts.cursor::<Option<&Locator>>(&());
|
||||
cursor.seek(locator, Bias::Left, &());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue