1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

wezterm: fix overlays to fill whole tab, not active pane size

refs: https://github.com/wez/wezterm/issues/157
This commit is contained in:
Wez Furlong 2020-09-24 10:30:16 -07:00
parent d66ee6a5c6
commit 6469cba8e1

View File

@ -27,10 +27,8 @@ where
F: Send + 'static + FnOnce(TabId, TermWizTerminal) -> anyhow::Result<T>,
{
let tab_id = tab.tab_id();
let pane = tab.get_active_pane().expect("tab to have pane");
// TODO: our overlay should overlap the overall contents of the pane
let dims = pane.renderer().get_dimensions();
let (tw_term, tw_tab) = allocate(dims.cols, dims.viewport_rows);
let tab_size = tab.get_size();
let (tw_term, tw_tab) = allocate(tab_size.cols.into(), tab_size.rows.into());
let window = term_window.window.clone().unwrap();