diff options
author | Blaž Hrastnik | 2022-01-03 03:52:01 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-01-23 07:00:24 +0000 |
commit | 53d881f17229e1fcda4f1e139258059b85e6beeb (patch) | |
tree | 5db8ed959e6d4ebaf9e97b8cd1d696ec73453aae /helix-term/src | |
parent | 6728e4449038e9481b72251441182d508c165a9c (diff) |
Store theme scopes on the loader, this way theme isn't passed around
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/picker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 00236050..e9692809 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -139,7 +139,7 @@ impl<T> FilePicker<T> { (size, _) if size > MAX_FILE_SIZE_FOR_PREVIEW => CachedPreview::LargeFile, _ => { // TODO: enable syntax highlighting; blocked by async rendering - Document::open(path, None, Some(&editor.theme), None) + Document::open(path, None, None) .map(|doc| CachedPreview::Document(Box::new(doc))) .unwrap_or(CachedPreview::NotFound) } |