|
|
|
@ -1385,6 +1385,12 @@ impl Component for EditorView {
|
|
|
|
|
}
|
|
|
|
|
cx.editor.resize(editor_area); // -1 from bottom for commandline
|
|
|
|
|
|
|
|
|
|
if let Some(explore) = self.explorer.as_mut() {
|
|
|
|
|
if !explore.content.is_focus() && config.explorer.is_embed() {
|
|
|
|
|
explore.content.render(area, surface, cx);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (view, is_focused) in cx.editor.tree.views() {
|
|
|
|
|
let doc = cx.editor.document(view.doc).unwrap();
|
|
|
|
|
self.render_view(cx.editor, doc, view, area, surface, is_focused);
|
|
|
|
@ -1461,13 +1467,15 @@ impl Component for EditorView {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if let Some(explore) = self.explorer.as_mut() {
|
|
|
|
|
if explore.content.is_focus() {
|
|
|
|
|
if config.explorer.is_embed() {
|
|
|
|
|
explore.content.render(area, surface, cx);
|
|
|
|
|
} else if explore.content.is_focus() {
|
|
|
|
|
} else {
|
|
|
|
|
explore.render(area, surface, cx);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn cursor(&self, _area: Rect, editor: &Editor) -> (Option<Position>, CursorKind) {
|
|
|
|
|
if let Some(explore) = &self.explorer {
|
|
|
|
|