diff options
author | Blaž Hrastnik | 2023-11-22 07:00:28 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-11-22 07:00:28 +0000 |
commit | 811d62d3b3699efb7b7ceb362f537979e5911871 (patch) | |
tree | 3ad3f593efed0b27ed68cb20b95f8a34881552de /helix-term/src/ui/picker.rs | |
parent | 41b307b673a34183123585d63746cb756c1779ed (diff) |
Revert "Fix precedence of ui.virtual.whitespace (#8750)"
This reverts commit 41b307b673a34183123585d63746cb756c1779ed.
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r-- | helix-term/src/ui/picker.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 9ba45335..0214a391 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -736,20 +736,17 @@ impl<T: Item + 'static> Picker<T> { } } - let syntax_highlights = EditorView::doc_syntax_highlights( + let mut highlights = EditorView::doc_syntax_highlights( doc, offset.anchor, area.height, &cx.editor.theme, ); - - let mut overlay_highlights = - EditorView::empty_highlight_iter(doc, offset.anchor, area.height); for spans in EditorView::doc_diagnostics_highlights(doc, &cx.editor.theme) { if spans.is_empty() { continue; } - overlay_highlights = Box::new(helix_core::syntax::merge(overlay_highlights, spans)); + highlights = Box::new(helix_core::syntax::merge(highlights, spans)); } let mut decorations: Vec<Box<dyn LineDecoration>> = Vec::new(); @@ -780,8 +777,7 @@ impl<T: Item + 'static> Picker<T> { offset, // TODO: compute text annotations asynchronously here (like inlay hints) &TextAnnotations::default(), - syntax_highlights, - overlay_highlights, + highlights, &cx.editor.theme, &mut decorations, &mut [], |