mirror of https://github.com/lapce/lapce.git
Fix the issue where commands without a keymap would disappear. (#3504)
This commit is contained in:
parent
a84ea98837
commit
2773c5c9ff
|
@ -192,7 +192,12 @@ fn load_commands(&mut self) {
|
|||
}
|
||||
|
||||
for (_, cmd) in self.commands.iter() {
|
||||
if !self.command_keymaps.contains_key(cmd.kind.str()) {
|
||||
if self
|
||||
.command_keymaps
|
||||
.get(cmd.kind.str())
|
||||
.map(|x| x.is_empty())
|
||||
.unwrap_or(true)
|
||||
{
|
||||
commands_without_keymap.push(cmd.clone());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue