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

ensure that we only use the default size when spawning new windows

This commit is contained in:
Wez Furlong 2021-03-10 00:19:50 -08:00
parent 83e9d672a4
commit 182a4d068b

View File

@ -17,10 +17,15 @@ pub enum SpawnWhere {
impl super::TermWindow {
pub fn spawn_command(&mut self, spawn: &SpawnCommand, spawn_where: SpawnWhere) {
let size = if spawn_where == SpawnWhere::NewWindow {
self.config.initial_size()
} else {
self.terminal_size
};
Self::spawn_command_impl(
spawn,
spawn_where,
self.config.initial_size(),
size,
self.mux_window_id,
ClipboardHelper {
window: self.window.as_ref().unwrap().clone(),