Clone fold and selection state correctly when splitting an editor
This commit is contained in:
parent
1720933597
commit
fb2a7787a1
5 changed files with 74 additions and 30 deletions
|
@ -77,7 +77,7 @@ pub(crate) fn build_editor(
|
|||
buffer: ModelHandle<MultiBuffer>,
|
||||
cx: &mut ViewContext<Editor>,
|
||||
) -> Editor {
|
||||
Editor::new(EditorMode::Full, buffer, None, None, None, cx)
|
||||
Editor::new(EditorMode::Full, buffer, None, None, cx)
|
||||
}
|
||||
|
||||
pub struct EditorTestContext<'a> {
|
||||
|
@ -428,7 +428,7 @@ impl<'a> EditorLspTestContext<'a> {
|
|||
let (window_id, editor) = cx.add_window(Default::default(), |cx| {
|
||||
let buffer = cx.add_model(|cx| MultiBuffer::singleton(buffer, cx));
|
||||
|
||||
Editor::new(EditorMode::Full, buffer, Some(project), None, None, cx)
|
||||
Editor::new(EditorMode::Full, buffer, Some(project), None, cx)
|
||||
});
|
||||
|
||||
editor.update(cx, |_, cx| cx.focus_self());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue