style(fmt): rustfmt

This commit is contained in:
Aram Drevekenin 2024-10-31 16:08:29 +01:00
parent 00fb71926d
commit 2b11d65fcb
2 changed files with 10 additions and 5 deletions

View File

@ -314,12 +314,17 @@ impl SessionMetaData {
pub fn get_client_keybinds_and_mode(
&self,
client_id: &ClientId,
) -> Option<(Keybinds, &InputMode, InputMode)> { // (keybinds, current_input_mode,
// default_input_mode)
) -> Option<(Keybinds, &InputMode, InputMode)> {
// (keybinds, current_input_mode,
// default_input_mode)
let client_keybinds = self.session_configuration.get_client_keybinds(client_id);
let default_input_mode = self.session_configuration.get_client_default_input_mode(client_id);
let default_input_mode = self
.session_configuration
.get_client_default_input_mode(client_id);
match self.current_input_modes.get(client_id) {
Some(client_input_mode) => Some((client_keybinds, client_input_mode, default_input_mode)),
Some(client_input_mode) => {
Some((client_keybinds, client_input_mode, default_input_mode))
},
_ => None,
}
}

View File

@ -76,7 +76,7 @@ impl Keybinds {
},
mode if mode == default_input_mode => {
Action::Write(key_with_modifier.cloned(), raw_bytes, key_is_kitty_protocol)
}
},
InputMode::RenameTab => Action::TabNameInput(raw_bytes),
InputMode::RenamePane => Action::PaneNameInput(raw_bytes),
InputMode::EnterSearch => Action::SearchInput(raw_bytes),