Remove selection highlights from deleted diff editors on blur (#11772)

Follow-up of https://github.com/zed-industries/zed/pull/11710

Release Notes:

- Removed extra line highlights when deleted diff editors loose focus
This commit is contained in:
Kirill Bulatov
2024-05-14 01:15:49 +03:00
committed by GitHub
parent cb34507ece
commit fcd5fa9257
2 changed files with 30 additions and 13 deletions
+1 -6
View File
@@ -1943,13 +1943,8 @@ impl Editor {
cx.notify();
}
pub fn set_current_line_highlight(
&mut self,
current_line_highlight: CurrentLineHighlight,
cx: &mut ViewContext<Self>,
) {
pub fn set_current_line_highlight(&mut self, current_line_highlight: CurrentLineHighlight) {
self.current_line_highlight = current_line_highlight;
cx.notify();
}
pub fn set_collapse_matches(&mut self, collapse_matches: bool) {