mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
Fix bug that was causing Editor
to notify on every mouse move
This commit is contained in:
parent
db4a0b14c0
commit
23414d185c
@ -240,7 +240,7 @@ impl DisplayMap {
|
||||
}
|
||||
pub fn clear_highlights(&mut self, type_id: TypeId) -> bool {
|
||||
let mut cleared = self.text_highlights.remove(&Some(type_id)).is_some();
|
||||
cleared |= self.inlay_highlights.remove(&type_id).is_none();
|
||||
cleared |= self.inlay_highlights.remove(&type_id).is_some();
|
||||
cleared
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user