|
|
@ -381,7 +381,10 @@ impl Component for Completion {
|
|
|
|
self.popup.render(area, surface, cx);
|
|
|
|
self.popup.render(area, surface, cx);
|
|
|
|
|
|
|
|
|
|
|
|
// if we have a selection, render a markdown popup on top/below with info
|
|
|
|
// if we have a selection, render a markdown popup on top/below with info
|
|
|
|
if let Some(option) = self.popup.contents().selection() {
|
|
|
|
let option = match self.popup.contents().selection() {
|
|
|
|
|
|
|
|
Some(option) => option,
|
|
|
|
|
|
|
|
None => return,
|
|
|
|
|
|
|
|
};
|
|
|
|
// need to render:
|
|
|
|
// need to render:
|
|
|
|
// option.detail
|
|
|
|
// option.detail
|
|
|
|
// ---
|
|
|
|
// ---
|
|
|
@ -480,5 +483,4 @@ impl Component for Completion {
|
|
|
|
surface.clear_with(area, background);
|
|
|
|
surface.clear_with(area, background);
|
|
|
|
markdown_doc.render(area, surface, cx);
|
|
|
|
markdown_doc.render(area, surface, cx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|