fixing warnings

This commit is contained in:
filipriec
2025-02-28 18:15:12 +01:00
parent 940c1abd5e
commit 8f7350ea93
3 changed files with 41 additions and 102 deletions

View File

@@ -314,18 +314,6 @@ async fn execute_action(
}
}
fn is_prefix_of_multikey_binding(sequence: &str, config: &Config) -> bool {
for (_, bindings) in &config.keybindings {
for binding in bindings {
if binding.contains('+') { continue; }
if binding.len() > sequence.len() && binding.starts_with(sequence) {
return true;
}
}
}
false
}
fn get_char_type(c: char) -> CharType {
if c.is_whitespace() {
CharType::Whitespace