mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-22 04:33:22 +03:00
style(fmt): rustfmt
This commit is contained in:
parent
00fb71926d
commit
2b11d65fcb
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user