works as expected
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user