From 11cb9ddeb9d6e2fe44022f65b7f429257aa032e9 Mon Sep 17 00:00:00 2001 From: Ben Kunkle Date: Wed, 2 Jul 2025 12:23:57 -0500 Subject: [PATCH] keymap_ui: Fix crash when using a base keymap (#33795) Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/settings/src/keymap_file.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/settings/src/keymap_file.rs b/crates/settings/src/keymap_file.rs index fd35cc6116..0548a69b55 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!(), } }