works as expected

This commit is contained in:
filipriec
2025-02-28 21:48:25 +01:00
parent 18be34b336
commit f2d2943232

View File

@@ -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);
}
}