Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
keymap_ui: Fix crash when using a base keymap (#33795)
Ben Kunkle11cb9ddeb9d6
diff --git a/crates/settings/src/keymap_file.rs b/crates/settings/src/keymap_file.rsindex fd35cc6116f..0548a69b553 100644--- a/crates/settings/src/keymap_file.rs+++ b/crates/settings/src/keymap_file.rs@@ -780,10 +780,10 @@ impl KeybindSource {pub fn from_meta(index: KeyBindingMetaIndex) -> Self {match index {- _ if index == Self::USER => KeybindSource::User,- _ if index == Self::USER => KeybindSource::Base,- _ if index == Self::DEFAULT => KeybindSource::Default,- _ if index == Self::VIM => KeybindSource::Vim,+ Self::USER => KeybindSource::User,+ Self::BASE => KeybindSource::Base,+ Self::DEFAULT => KeybindSource::Default,+ Self::VIM => KeybindSource::Vim,_ => unreachable!(),}}