diff --git a/crates/editor/src/split.rs b/crates/editor/src/split.rs index 3841e4656415effaa5aa8043a6c8be1f87d12502..c667f83893210d8960d97858b25260c241da0c51 100644 --- a/crates/editor/src/split.rs +++ b/crates/editor/src/split.rs @@ -409,8 +409,21 @@ mod tests { let editor = cx.new_window_entity(|window, cx| { SplittableEditor::new_unsplit(multibuffer, project, workspace, window, cx) }); + + // for _ in 0..random() { + // editor.update(cx, |editor, cx| { + // randomly_mutate(primary_multibuffer); + // editor.primary_editor().update(cx, |editor, cx| { + // editor.edit(vec![(random()..random(), "...")], cx); + // }) + // }); + // } + + // editor.read(cx).primary_editor().read(cx).display_map.read(cx) } + // MultiB + // FIXME restore these tests in some form // #[gpui::test] // async fn test_filtered_editor_pair(cx: &mut gpui::TestAppContext) { diff --git a/crates/multi_buffer/src/multi_buffer.rs b/crates/multi_buffer/src/multi_buffer.rs index 85fc14a934d173524542147386ba1856aa0149ce..dd5d0d2d0170e1b0fed9e4a8ebd97a19c801714d 100644 --- a/crates/multi_buffer/src/multi_buffer.rs +++ b/crates/multi_buffer/src/multi_buffer.rs @@ -3601,6 +3601,7 @@ impl MultiBuffer { let max_excerpts = env::var("MAX_EXCERPTS") .map(|i| i.parse().expect("invalid `MAX_EXCERPTS` variable")) .unwrap_or(5); + let use_path_excerpts = !self.excerpts_by_path.is_empty(); let mut buffers = Vec::new(); for _ in 0..mutation_count {