diff options
author | Blaž Hrastnik | 2021-03-16 04:49:22 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-16 04:51:35 +0000 |
commit | 081e0ae8ae4ead621010e7e6a060194fe2433bad (patch) | |
tree | 5f199eadd3c153587e7efd7fc5f69ddbf9af61ee /helix-term/src/ui | |
parent | 71f899cb5b7753115b2e16ca115b4f376c4b6aee (diff) |
syntax: highlight_iter always returns Ok()
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index ff3c70cf..31a19649 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -94,7 +94,6 @@ impl EditorView { Some(syntax) => { syntax .highlight_iter(text.slice(..), Some(range), None, |_| None) - .unwrap() .collect() // TODO: we collect here to avoid holding the lock, fix later } None => vec![Ok(HighlightEvent::Source { |