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
@@ -295,22 +295,8 @@ async fn test_basic_following(
|
||||
.unwrap()
|
||||
});
|
||||
let mut result = MultiBuffer::new(Capability::ReadWrite);
|
||||
result.push_excerpts(
|
||||
buffer_a1,
|
||||
[ExcerptRange {
|
||||
context: 0..3,
|
||||
primary: None,
|
||||
}],
|
||||
cx,
|
||||
);
|
||||
result.push_excerpts(
|
||||
buffer_a2,
|
||||
[ExcerptRange {
|
||||
context: 4..7,
|
||||
primary: None,
|
||||
}],
|
||||
cx,
|
||||
);
|
||||
result.push_excerpts(buffer_a1, [ExcerptRange::new(0..3)], cx);
|
||||
result.push_excerpts(buffer_a2, [ExcerptRange::new(4..7)], cx);
|
||||
result
|
||||
});
|
||||
let multibuffer_editor_a = workspace_a.update_in(cx_a, |workspace, window, cx| {
|
||||
|
||||
Reference in New Issue
Block a user