File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4782,6 +4782,15 @@ impl Editor {
4782
4782
self.clear_background_highlights::<SelectedTextHighlight>(cx);
4783
4783
return;
4784
4784
}
4785
+ if self.selections.count() != 1 || self.selections.line_mode {
4786
+ self.clear_background_highlights::<SelectedTextHighlight>(cx);
4787
+ return;
4788
+ }
4789
+ let selection = self.selections.newest::<Point>(cx);
4790
+ if selection.is_empty() || selection.start.row != selection.end.row {
4791
+ self.clear_background_highlights::<SelectedTextHighlight>(cx);
4792
+ return;
4793
+ }
4785
4794
let debounce = EditorSettings::get_global(cx).selection_highlight_debounce;
4786
4795
self.selection_highlight_task = Some(cx.spawn_in(window, |editor, mut cx| async move {
4787
4796
cx.background_executor()
You can’t perform that action at this time.
0 commit comments