Fix scroll to top on multibuffer save (#24885)
Co-Authored-By: Cole <cole@zed.dev> Closes #ISSUE Release Notes: - N/A --------- Co-authored-by: Cole <cole@zed.dev>
This commit is contained in:
parent
7ee492746d
commit
20460239a0
3 changed files with 19 additions and 24 deletions
|
@ -1599,7 +1599,7 @@ fn test_set_excerpts_for_buffer_ordering(cx: &mut TestAppContext) {
|
|||
cx,
|
||||
)
|
||||
});
|
||||
let path1: PathKey = PathKey::namespaced("0", Path::new("/"));
|
||||
let path1: PathKey = PathKey::namespaced("0", Path::new("/").into());
|
||||
|
||||
let multibuffer = cx.new(|_| MultiBuffer::new(Capability::ReadWrite));
|
||||
multibuffer.update(cx, |multibuffer, cx| {
|
||||
|
@ -1695,7 +1695,7 @@ fn test_set_excerpts_for_buffer(cx: &mut TestAppContext) {
|
|||
cx,
|
||||
)
|
||||
});
|
||||
let path1: PathKey = PathKey::namespaced("0", Path::new("/"));
|
||||
let path1: PathKey = PathKey::namespaced("0", Path::new("/").into());
|
||||
let buf2 = cx.new(|cx| {
|
||||
Buffer::local(
|
||||
indoc! {
|
||||
|
@ -1714,7 +1714,7 @@ fn test_set_excerpts_for_buffer(cx: &mut TestAppContext) {
|
|||
cx,
|
||||
)
|
||||
});
|
||||
let path2 = PathKey::namespaced("x", Path::new("/"));
|
||||
let path2 = PathKey::namespaced("x", Path::new("/").into());
|
||||
|
||||
let multibuffer = cx.new(|_| MultiBuffer::new(Capability::ReadWrite));
|
||||
multibuffer.update(cx, |multibuffer, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue