1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 18:57:59 +03:00

fix build on windows

refs: https://github.com/wez/wezterm/issues/2991
This commit is contained in:
Wez Furlong 2023-01-21 15:36:04 -07:00
parent 33f25e9ce6
commit 7b23e84784
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -20,7 +20,6 @@ use std::collections::{BTreeMap, HashMap, HashSet};
use std::convert::TryInto;
use std::io::{Result as IoResult, Write};
use std::ops::Range;
use std::path::PathBuf;
use std::sync::Arc;
use std::time::{Duration, Instant};
use termwiz::escape::csi::{Sgr, CSI};
@ -73,8 +72,8 @@ struct CachedLeaderInfo {
updated: Instant,
fd: std::os::fd::RawFd,
pid: u32,
path: Option<PathBuf>,
current_working_dir: Option<PathBuf>,
path: Option<std::path::PathBuf>;
current_working_dir: Option<std::path::PathBuf>,
updating: bool,
}
@ -481,6 +480,9 @@ impl Pane for LocalPane {
if let Some(fg) = self.divine_foreground_process() {
return Some(fg.executable.to_string_lossy().to_string());
}
#[allow(unreachable_code)]
None
}
fn can_close_without_prompting(&self, _reason: CloseReason) -> bool {