aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorPascal Kuthe2022-12-11 10:20:34 +0000
committerGitHub2022-12-11 10:20:34 +0000
commit70d78123b94d93c801171ac3dd29e2a493feee20 (patch)
treef57fc633bca23b9d34f59b2d8e9ff0fbf4e70d57 /helix-term/src
parent0e8ea13696206aa8ad289d539a5df62f34a73dec (diff)
properly handle detachted git worktrees (#5097)
Diffstat (limited to 'helix-term/src')
-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 f61c4c45..107e48dd 100644
--- a/helix-term/src/ui/mod.rs
+++ b/helix-term/src/ui/mod.rs
@@ -207,7 +207,7 @@ pub fn file_picker(root: PathBuf, config: &helix_view::editor::Config) -> FilePi
// Cap the number of files if we aren't in a git project, preventing
// hangs when using the picker in your home directory
- let files: Vec<_> = if root.join(".git").is_dir() {
+ let files: Vec<_> = if root.join(".git").exists() {
files.collect()
} else {
// const MAX: usize = 8192;