keymap_ui: Fix crash when using a base keymap (#33795)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Ben Kunkle 2025-07-02 12:23:57 -05:00 committed by GitHub
parent 169620632a
commit 11cb9ddeb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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!(),
}
}