aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/mod.rs
diff options
context:
space:
mode:
authorA-Walrus2022-11-21 01:58:35 +0000
committerGitHub2022-11-21 01:58:35 +0000
commit2f9ca3840a478fc58f411b6a4bc67019829ff72f (patch)
treee26e340d317442b4d9e8ae8216ad40dc297a77ca /helix-term/src/ui/mod.rs
parent420e33a60064ad86e9f2f8dd29b3938318355673 (diff)
Add preview for scratch buffers in buffer picker (#3454)
Diffstat (limited to 'helix-term/src/ui/mod.rs')
-rw-r--r--helix-term/src/ui/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs
index cca9e9bf..3416b319 100644
--- a/helix-term/src/ui/mod.rs
+++ b/helix-term/src/ui/mod.rs
@@ -230,7 +230,7 @@ pub fn file_picker(root: PathBuf, config: &helix_view::editor::Config) -> FilePi
cx.editor.set_error(err);
}
},
- |_editor, path| Some((path.clone(), None)),
+ |_editor, path| Some((path.clone().into(), None)),
)
}