Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index a6ce91a6..5a4b3afb 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -624,7 +624,14 @@ impl<T: 'static + Send + Sync, D: 'static + Send + Sync> Picker<T, D> {
if content_type.is_binary() {
return Ok(CachedPreview::Binary);
}
- Document::open(&path, None, None, editor.config.clone()).map_or(
+ Document::open(
+ &path,
+ None,
+ false,
+ editor.config.clone(),
+ editor.syn_loader.clone(),
+ )
+ .map_or(
Err(std::io::Error::new(
std::io::ErrorKind::NotFound,
"Cannot open document",