Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
quote path
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Dec 19, 2021
1 parent 7a062a0 commit 6904fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl SkimItem for DirItem {

fn preview(&self, _context: PreviewContext) -> ItemPreview {
if self.readme.is_none() {
return ItemPreview::Command(format!("ls {}", self.path));
return ItemPreview::Command(format!("ls \"{}\"", self.path));
}

let readme_path = self.readme.as_ref().unwrap();
Expand Down

0 comments on commit 6904fdc

Please sign in to comment.