diff options
author | Blaž Hrastnik | 2021-11-06 15:21:03 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-01-23 07:00:24 +0000 |
commit | 6728e4449038e9481b72251441182d508c165a9c (patch) | |
tree | 2967675e350be4b6daf815a6662a644b76239882 /helix-term/src/ui/picker.rs | |
parent | 83bde1004d596740a7bb63ec7fe2271734492f59 (diff) |
syntax: Split parsing and highlighting
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r-- | helix-term/src/ui/picker.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index a061513c..00236050 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -221,13 +221,8 @@ impl<T: 'static> Component for FilePicker<T> { let offset = Position::new(first_line, 0); - let highlights = EditorView::doc_syntax_highlights( - doc, - offset, - area.height, - &cx.editor.theme, - &cx.editor.syn_loader, - ); + let highlights = + EditorView::doc_syntax_highlights(doc, offset, area.height, &cx.editor.theme); EditorView::render_text_highlights( doc, offset, |