mirror of
https://github.com/wez/wezterm.git
synced 2024-11-25 10:22:43 +03:00
fix build on windows
This commit is contained in:
parent
60566c7119
commit
2843adb680
@ -458,8 +458,16 @@ impl Pane for LocalPane {
|
||||
}
|
||||
|
||||
fn tty_name(&self) -> Option<String> {
|
||||
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<LocalProcessInfo> {
|
||||
|
Loading…
Reference in New Issue
Block a user