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:
parent
169620632a
commit
11cb9ddeb9
1 changed files with 4 additions and 4 deletions
|
@ -780,10 +780,10 @@ impl KeybindSource {
|
||||||
|
|
||||||
pub fn from_meta(index: KeyBindingMetaIndex) -> Self {
|
pub fn from_meta(index: KeyBindingMetaIndex) -> Self {
|
||||||
match index {
|
match index {
|
||||||
_ if index == Self::USER => KeybindSource::User,
|
Self::USER => KeybindSource::User,
|
||||||
_ if index == Self::USER => KeybindSource::Base,
|
Self::BASE => KeybindSource::Base,
|
||||||
_ if index == Self::DEFAULT => KeybindSource::Default,
|
Self::DEFAULT => KeybindSource::Default,
|
||||||
_ if index == Self::VIM => KeybindSource::Vim,
|
Self::VIM => KeybindSource::Vim,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue