gui: disable zone fetch in the renderer

We need a more scalable alternative to this before we can use
it in the renderer.
This commit is contained in:
Wez Furlong committed 2021-08-15 15:58:51 -07:00
1 parent aa9cbd4552
commit e1ee1ddd97
1 file changed
+4
+4
View File
@@ -211,6 +211,7 @@ impl super::TermWindow {
num_panes: usize,
) -> anyhow::Result<()> {
self.check_for_dirty_lines_and_invalidate_selection(&pos.pane);
/*
let zone = {
let dims = pos.pane.get_dimensions();
let position = self
@@ -224,6 +225,7 @@ impl super::TermWindow {
let idx = ((idx as isize) - 1).max(0) as usize;
zones.get(idx).cloned()
};
*/
let global_bg_color = self.palette().background;
let config = &self.config;
@@ -518,9 +520,11 @@ impl super::TermWindow {
&mut quads,
)?;
}
/*
if let Some(zone) = zone {
// TODO: render a thingy to jump to prior prompt
}
*/
metrics::histogram!("paint_pane_opengl.lines", start.elapsed());
log::trace!("lines elapsed {:?}", start.elapsed());