Repaint inlays icon on inlays cache disabling/enabling

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Kirill Bulatov
2023-08-16 23:38:11 +03:00
co-authored by Mikayla Maki
parent 0b93e490a5
commit 0f650acc23
3 changed files with 25 additions and 6 deletions
+6 -2
View File
@@ -88,8 +88,12 @@ impl Binding {
action: &dyn Action,
contexts: &[KeymapContext],
) -> Option<SmallVec<[Keystroke; 2]>> {
if self.action.eq(action) && self.match_context(contexts) {
Some(self.keystrokes.clone())
if self.action.eq(action) {
if self.match_context(contexts) {
Some(self.keystrokes.clone())
} else {
None
}
} else {
None
}