From 2843adb680059ac14ec5a86385e3dd5bd5ac3fe3 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 6 Apr 2023 17:26:35 -0700 Subject: [PATCH] fix build on windows --- mux/src/localpane.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mux/src/localpane.rs b/mux/src/localpane.rs index 7620a4ca2..fc6d1181a 100644 --- a/mux/src/localpane.rs +++ b/mux/src/localpane.rs @@ -458,8 +458,16 @@ impl Pane for LocalPane { } fn tty_name(&self) -> Option { - let name = self.pty.lock().tty_name()?; - Some(name.to_string_lossy().into_owned()) + #[cfg(unix)] + { + let name = self.pty.lock().tty_name()?; + Some(name.to_string_lossy().into_owned()) + } + + #[cfg(windows)] + { + None + } } fn get_foreground_process_info(&self) -> Option {