1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-13 07:22:52 +03:00

wezterm-gui: fixup compilation

This commit is contained in:
Wez Furlong 2020-12-06 14:30:45 -08:00
parent 61c52af491
commit 19843ba8f3

View File

@ -483,14 +483,14 @@ impl WindowCallbacks for TermWindow {
let (leader_active, leader_mod) = match self.leader_is_down.as_ref() {
Some(expiry) if *expiry > std::time::Instant::now() => {
// Currently active
(true, window::input::Modifiers::LEADER)
(true, Modifiers::LEADER)
}
Some(_) => {
// Expired; clear out the old expiration time
self.leader_is_down.take();
(false, window::input::Modifiers::NONE)
(false, Modifiers::NONE)
}
_ => (false, window::input::Modifiers::NONE),
_ => (false, Modifiers::NONE),
};
let modifiers = window_mods_to_termwiz_mods(window_key.modifiers);