Preserve cursor position when resetting excerpts (#27850)
Release Notes: - N/A --------- Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
co-authored by
Nathan Sobo
Conrad Irwin
parent
f859b328f0
commit
76871056f5
@@ -120,10 +120,9 @@ impl EditorTestContext {
|
||||
let buffer = cx.new(|cx| Buffer::local(text, cx));
|
||||
multibuffer.push_excerpts(
|
||||
buffer,
|
||||
ranges.into_iter().map(|range| ExcerptRange {
|
||||
context: range,
|
||||
primary: None,
|
||||
}),
|
||||
ranges
|
||||
.into_iter()
|
||||
.map(|range| ExcerptRange::new(range.clone())),
|
||||
cx,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user