Merge pull request #2134 from zed-industries/fix-action-keystroke-bugs

Fix several action dispatching bugs
This commit is contained in:
Mikayla Maki 2023-02-08 15:56:50 -08:00
parent f753a83eb1
commit 58b819e9a4
9 changed files with 89 additions and 50 deletions

View file

@ -43,7 +43,7 @@ impl KeymapContextPredicate {
pub fn eval(&self, contexts: &[KeymapContext]) -> bool {
let Some(context) = contexts.first() else { return false };
match self {
Self::Identifier(name) => context.set.contains(name.as_str()),
Self::Identifier(name) => (&context.set).contains(name.as_str()),
Self::Equal(left, right) => context
.map
.get(left)