Fix innermost brackets panic (#32120)
Release Notes: - Fixed a few rare panics that could happen when a multibuffer excerpt started with expanded deleted content.
This commit is contained in:
parent
7aa70a4858
commit
4b297a9967
2 changed files with 17 additions and 1 deletions
|
@ -6227,7 +6227,7 @@ impl MultiBufferSnapshot {
|
|||
cursor.seek_to_start_of_current_excerpt();
|
||||
let region = cursor.region()?;
|
||||
let offset = region.range.start;
|
||||
let buffer_offset = region.buffer_range.start;
|
||||
let buffer_offset = start_excerpt.buffer_start_offset();
|
||||
let excerpt_offset = cursor.excerpts.start().clone();
|
||||
Some(MultiBufferExcerpt {
|
||||
diff_transforms: cursor.diff_transforms,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue