Set configuration on new-tab terminals

Non-default settings wouldn't apply to new-tab terminals otherwise.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
This commit is contained in:
Mohammad AlSaleh 2024-01-01 10:37:35 +03:00 committed by Jeremy Soller
parent 5ac267d228
commit 9ba9f0fb6e

View file

@ -554,12 +554,13 @@ impl Application for App {
.closable()
.activate()
.id();
let terminal = Terminal::new(
let mut terminal = Terminal::new(
entity,
term_event_tx.clone(),
self.term_config.clone(),
colors.clone(),
);
terminal.set_config(&self.config, &self.themes);
self.tab_model
.data_set::<Mutex<Terminal>>(entity, Mutex::new(terminal));
}