diff options
author | a-kenji <aks.kenji@protonmail.com> | 2022-06-20 20:25:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 20:25:29 +0200 |
commit | 29332ca68490e907b7b9159d41b1a90efbe5c8a1 (patch) | |
tree | 9fce03b7062940a98ec6d1e709e710f64350f1e6 /zellij-client/src | |
parent | 0c24edea7f5156aa897201c0db054cd588f92a60 (diff) |
add: debug information for certain actions (#1533)
Diffstat (limited to 'zellij-client/src')
-rw-r--r-- | zellij-client/src/input_handler.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 7c35fa3c6..18ccf35b3 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -232,8 +232,6 @@ impl InputHandler { // Actions, that are independent from the specific client // and not session idempotent should be specified here Action::NewTab(_) - | Action::CloseFocus - | Action::CloseTab | Action::Run(_) | Action::NewPane(_) | Action::WriteChars(_) @@ -246,7 +244,13 @@ impl InputHandler { | Action::ToggleFocusFullscreen | Action::Write(_) => { let client_id = clients.first().unwrap(); - log::error!("Sending action to client: {}", client_id); + log::debug!("Sending action to client: {}", client_id); + self.dispatch_action(action, Some(*client_id)); + }, + Action::CloseFocus | Action::CloseTab => { + let client_id = clients.first().unwrap(); + log::debug!("Sending action to client: {}", client_id); + log::warn!("Running this action from the focused pane, can lead to unexpected behaviour."); self.dispatch_action(action, Some(*client_id)); }, _ => { |