From f2d294323213e91203818fe33cc01e8c46e17286 Mon Sep 17 00:00:00 2001 From: filipriec Date: Fri, 28 Feb 2025 21:48:25 +0100 Subject: [PATCH] works as expected --- client/src/config/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/config/config.rs b/client/src/config/config.rs index b7f8bd9..6294983 100644 --- a/client/src/config/config.rs +++ b/client/src/config/config.rs @@ -212,7 +212,7 @@ impl Config { // First check command mode bindings for (action, bindings) in &self.keybindings.command { for binding in bindings { - if binding.starts_with(':') && binding.trim_start_matches(':') == command { + if binding == command { return Some(action); } } @@ -221,7 +221,7 @@ impl Config { // Then check common bindings for (action, bindings) in &self.keybindings.common { for binding in bindings { - if binding.starts_with(':') && binding.trim_start_matches(':') == command { + if binding == command { return Some(action); } } @@ -230,7 +230,7 @@ impl Config { // Finally check global bindings for (action, bindings) in &self.keybindings.global { for binding in bindings { - if binding.starts_with(':') && binding.trim_start_matches(':') == command { + if binding == command { return Some(action); } }